On Tuesday, May 21, 2013 5:00:28 PM UTC+2, Maxim Yefremov wrote: > > Ok. I fix it with backquotes. > *node `which nodeunit` ./path/To/My/NodeUnitTests/nodeunit_test.coffee* > > I see output: > *debugger listening on port 5858* > Then usual output for my nodeunit test. But no debugging. Allthough unit > test has string *debugger;* > * > * > In another console: > *node-inspector &* > [2] 17020 > macName:folderName user$ info - socket.io started > warn - error raised: Error: listen EADDRINUSE > connect ECONNREFUSED > node-inspector & > > In browser url *http://0.0.0.0:8080/debug?port=5858* > Just initial nodeinspector state here. No files to choose. No breakpoints > to stop. >
I suspect your unit-test finishes before you manage to attach node-inspector to the debugger. Try using --debug-brk instead of --debug for your node command-line. node --debug-brk `which nodeunit` This will start the debugger and stop (break) at the first line. After your node-inspector is attached to your unit-test, press continue/resume and your `debugger;` statement should break the process shortly afterwards. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
