0

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.

Scooter
  • 6,802
  • 8
  • 41
  • 64
Stepan Yakovenko
  • 8,670
  • 28
  • 113
  • 206

2 Answers2

2

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.

Stepan Yakovenko
  • 8,670
  • 28
  • 113
  • 206
0

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.

Simon Boudrias
  • 42,953
  • 16
  • 99
  • 134
  • how can I specify these properties? I've tried adding debug and --debug-brk to the "Interpreter arguments" edit box. It doesn't show selected line to be stopped at. – Stepan Yakovenko Apr 24 '14 at 19:01
  • Adding debug to interpreter arguments should do the trick... I don't know what's going on then. – Simon Boudrias Apr 24 '14 at 22:33