Closed tobiashochguertel closed 7 months ago
Thank you for your feedback. Adding logging for scripts, as well as logging all requests and responses, is on my roadmap. For now, please use console.log
for step-by-step debugging.
But where Do I see the console.log
output?
You can find the console.log
output in the Test results
tab of the response panel. However, there's a known issue where if an error is thrown in the Pre-request script, the response panel won't display, and only the error message will be shown. I'm planning to address this in future updates.
Version 2024.1.6 now includes a console in the Services tool window for viewing requests, responses, and script output. You can also view console.log output from pre-request scripts, even if an error is thrown. Additionally, error messages have been enhanced.
Is your feature request related to a problem?
I have the following pre-request script:
And I don't know why it doesn't work and what of an issue it encounters. I tried to convert it from Postman to Jetclient, but without a console window to see error or debug messages I'm lost.
Describe the solution you'd like
At least a log file where I can see the output of the JavaScript pre-request script when it runs.
Additional context
No response