Debugging with webstorm
Here’s a quick tip debugging a nodejs express app

- Identify a line you want to debug, and click on its number, you should see a red dot. Eg I am interested to see the
console.log
ofreq.body
method on the server side js - Click the top left green ‘bug’
- Open your localhost:xxxx or refresh it if it was open
- Since, the method I want to see happening need to send the form, fill the form and hit send
- Observe the terminal and expand the
req
object to find thebody
method - Upon clicking
body
you should get to see the console logged values that you filled in the form. In this case email and password
I would find time to read further on debugging nodejs app in chrome dev tools from Paul.