nodeclipse debugger configuration

2019-08-08 10:52发布

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...

2条回答
老娘就宠你
2楼-- · 2019-08-08 11:38

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.

查看更多
等我变得足够好
3楼-- · 2019-08-08 11:47

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!).

查看更多
登录 后发表回答