Anand,

Typically you have to start node with the --debug-brk argument (first, 
before your *.js file, like this: "node --debug-brk
 your/short/node/script.js").

The breakpoint also needs to be on a line that does something -- I don't 
think it works on blank lines or lines with an opening or closing brace or 
parentheses or simple "var" declaration. A few times I think I've had 
trouble with it not stopping somewhere that it should -- like an assignment 
-- perhaps because the v8 engine internally optimized the code or 
something. In those cases, it's always worked for me to stick a breakpoint 
next to that line (on the next executable line) or to type an actual 
"debugger;" line into the javascript source file.

-- peter


>

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


Reply via email to