0👍
✅
The solution (even if it’s not really a solution) has been to add console.log
to the line I wanted to debug.
0👍
For newer NodeJS versions (> 7.0.0) you need to use
node --inspect-brk event_type.controller.js
instead of
node --inspect --debug-break event_type.controller.js
to break on the first line of the application code. See https://nodejs.org/api/debugger.html#debugger_advanced_usage for more information.
Source:stackexchange.com