문제

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

도움이 되었습니까?

해결책

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.

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top