Implications of running node with --debug argument

31 views
Skip to first unread message

Bill Klein

unread,
Dec 7, 2016, 11:19:07 PM12/7/16
to nodejs
I have a bug in my node server that I'm trying to track down. Unfortunately it happens rarely and, so far, only on production.

Therefore, I would like to be able to attach a debugger to my server retrospectively, after the problem occurs.

What are the implications of running a production node server with the --debug argument (without an attached debugger)? Performance? Security?

Thanks.

Ben Noordhuis

unread,
Dec 8, 2016, 10:10:33 AM12/8/16
to nod...@googlegroups.com
Depending on the node version, the debugger listens either on
127.0.0.1 or 0.0.0.0.

Address 0.0.0.0, a.k.a. the 'any' address, is a security liability if
TCP ports 5858 and 9229 are accessible from the internet. The latest
node v4 and v6 support `--debug=127.0.0.1:5858` syntax. Node v7 does
too but it listens on 127.0.0.1 by default (v4 and v6 listen on
0.0.0.0.)

Performance-wise --debug doesn't make a difference until the debugger
is activated. When you stop debugging, the program resumes running at
full speed again. Debugged functions are deoptimized but are
optimized again through the usual process.

nilsal...@yahoo.com

unread,
Dec 10, 2016, 1:22:23 AM12/10/16
to nod...@googlegroups.com

--------------------------------------------
On Thu, 12/8/16, Ben Noordhuis <in...@bnoordhuis.nl> wrote:

Subject: Re: [nodejs] Implications of running node with --debug argument
To: nod...@googlegroups.com
Date: Thursday, December 8, 2016, 2:15 PM
--
Job board:
http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 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 unsubscribe
from this group and stop receiving emails from it, send an
email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/CAHQurc_AUvAK7XVCT_RbcGrmHofEa-U9U-PPipW8VxwByqODLA%40mail.gmail.com.
For
more options, visit https://groups.google.com/d/optout.
acea de la Brest-Litovsk din 18 februarie 3 martie 1918 intre Rusia 'ietica si Puterile Centrale si intrarea trupelor germane in Ucraina au lasat mania total descoperita in fata Puterilor Centrale si inconjurata din toate Iile de dusmani. intre lunile decembrie 1917 si mai 1918 au avut loc ivorbiri pentru incheierea pacii intre Romania si Puterile Centrale. in cadrul

gertu...@yahoo.com

unread,
Dec 10, 2016, 7:21:41 PM12/10/16
to nod...@googlegroups.com

--------------------------------------------
On Sat, 12/10/16, nilsalandrum via nodejs <nod...@googlegroups.com> wrote:

Subject: Re: [nodejs] Implications of running node with --debug argument
To: nod...@googlegroups.com
Date: Saturday, December 10, 2016, 12:56 AM
https://groups.google.com/d/msgid/nodejs/1552064820.90736.1481324200294%40mail.yahoo.com.
For more options, visit
https://groups.google.com/d/optout.n capitol important al vietii social-economice din aceasta perioada il reprezinta si patrunderea capitalului strain. El s-a aflat in legatura cu procesul de industrializare si repartitia venitului national. Fiind atras de bogatia de materii prime capitalul strain s-a confruntat cu politica organizata si constienta a statului roman care in spiritul politicii promovata cu asiduitate in epoca moderna prin noi insine a protejat economia nationala si capitalul autohton inca insuficient.
Reply all
Reply to author
Forward
0 new messages