-->

nodeclipse debugger configuration

2019-08-08 11:23发布

问题:

I have problem configuring nodeclipse properly for debugging. I configured nodemon as my node monitor but it seams debbuger doesn't attach to my program but to nodemon.

console says :

/usr/local/bin/node --debug-brk=5858 /usr/lib/node_modules/nodemon/nodemon.js /myproject/server.js 

Debugger stops at the first line of nodemon but doesn't seem to see my programs breakpoint.

Any ideas ? Alternatively, is there a way to run programs from neclipse without node monitor which seem to be always needed...

回答1:

Problem was in fact due to "corrupted" project. I deleted the project and recreated a fresh one with my files. All is working as expected now.

Hope it'll hep others.



回答2:

I'd also add that you're debugging nodemon there, rather than your script. If you pass the --debug-brk=5858 to nodemon, rather than node, nodemon will spawn your script with debug enabled, and you'll be able to debug your script (instead of nodemon!).