How to debug nodejs with komodo IDE?

1.1k Views Asked by At

I've created a project with komodo IDE:

I create debug config:

The program starts but dont stop at the breakpoint:

What am I doing wrong? Is there any step-by-step info for this? Thanx.

2

There are 2 best solutions below

0
On BEST ANSWER

Debugger in nodejs never stops on single-lined app like this. When I have several lines like this, then it would work. Single-lined app exits too fast and debugger can't connect. This is obviously a bug in nodejs.

2
On

Node.js only breaks on breakpoints when you run in debug mode.

Either with node debug script.js or node --debug-brk script.js.

Here you need to tell the IDE if needs to add the command line arguments to run the script.