- Go to devServer folder in command-line and run the below code
node --inspect server
- Open chrome console window and click on the top Node icon (screenshot)
- Go to terminal in IDE and run the below code
npm run lambda(starts node server)
- Click >
Shift+Ctrl+p - Select Attach to Node Process.

- Select the top option to attach the debugger.

- After attaching debugger to Node then you will see the debugger controls.

And you're up and debugging! You can add breakpoints to your code right in your IDE, plus see the scoping of variables and the call stack.

