On Feb 24, 10:21 am, Sean Bannister <[email protected]> wrote: > I was wondering if there's a way to check if node.js is running in > debug mode "node debug script.js" so I can send extra debug > information to the console when it is.
Try checking if `global.v8debug` is defined or not. If it is, then you're in debug mode. -- 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
