How to debug in Postman

For debugging we can use the postman console.

How to open the console?

  1. View -> Show postman console

2. Keyboard shortcut

Alt + Ctrl + C

3. Console

Whatever we will run in the postman will be logged in the console.

When we expand the request we can see more details on the request.

In the postman the logs are preserved for the session when the postman console window is open. Also we have more options in the console such as filter, clear and copy.

We can add console.log() in tests or pre-requests sections further. Also we can use console.info(), console.warn(), console.error() for debugging.

For more developer tools we can go to view -> Developer -> Show more developer tools.

--

--