Uh oh!
There was an error while loading. Please reload this page.
src,lib: minor --debug-brk cleanup - #6599
Conversation
eb95df5 to
e74840aCompareofrobots
commented
May 5, 2016
cjihrig
commented
May 5, 2016
Is this related to #2546? |
eugeneo
commented
May 5, 2016
We believe this is a genuine bug, but we uncovered it while working on On Thu, May 5, 2016 at 2:00 PM Colin Ihrig notifications@github.com wrote:
|
bnoordhuis
commented
May 6, 2016
LGTM but it would be even better if the property was deleted again before it's visible to user code. |
ofrobots
commented
May 6, 2016
@bnoordhuis That's a good idea. Please take another look. New CI: https://ci.nodejs.org/job/node-test-pull-request/2525/ |
cjihrig
commented
May 6, 2016
LGTM |
1 similar comment
bnoordhuis
commented
May 6, 2016
LGTM |
bnoordhuis
commented
May 6, 2016
Weird failure on the fedora23 bot, by the way: https://ci.nodejs.org/job/node-test-commit-linux/3256/nodes=fedora23/console I don't know what's causing it but it looks unrelated. |
Minor cleanup of how --debug-brk works: * We no longer need to use command line flags to expose the debug object. * Do not depend on the existence of global.v8debug as a mechanism to determine if --debug-brk was specified. * We no longer need to set a dummy listener with --debug-brk. PR-URL: nodejs#6599 Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com>
ofrobots
commented
May 7, 2016
Thanks. Landed as 4d4cfb2. |
Minor cleanup of how --debug-brk works: * We no longer need to use command line flags to expose the debug object. * Do not depend on the existence of global.v8debug as a mechanism to determine if --debug-brk was specified. * We no longer need to set a dummy listener with --debug-brk. PR-URL: #6599 Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com>
MylesBorins
commented
Jun 2, 2016
@ofrobots lts? |
ofrobots
commented
Jun 2, 2016
I don't see a very strong benefit, or much harm from back-porting this to 4.x LTS. This should be back-portable, modulo the |
MylesBorins
commented
Jul 11, 2016
@ofrobots I'm moving this to don't land for now, please let me know if you would like to send a PR |
jez9999
commented
Oct 12, 2016
How am I supposed to programatically detect whether I'm in debug mode now if you don't expose global.v8debug? I tried checking process._debugWaitConnect but that is undefined too even when I pass --debug-brk=12345. |
bnoordhuis
commented
Oct 12, 2016
You could check with |
jez9999
commented
Oct 12, 2016
@bnoordhuis Because if it's debugging, I need to change the argv for each new forked process so they don't have a debugging port clash with existing processes. |
bnoordhuis
commented
Oct 12, 2016
Are you using |
jez9999
commented
Oct 12, 2016
Yeah, I am using that as I don't want processes to share ports. I don't know why the port shuffle wasn't extended, the principle is the same with child_process. |
jez9999
commented
Oct 12, 2016
In fact, is there any reason why i should use child_process instead of cluster? If the only difference is that cluster can share TCP ports, child_process seems to be redundant at this point. Kind of makes you wonder why they created a whole new core module for cluster. |
bnoordhuis
commented
Oct 12, 2016
With all due respect, but if you think that is the only difference between the two modules, you need to read the documentation (or their sources) more closely. |
jez9999
commented
Oct 12, 2016
From my reading of the docs that is basically the only difference. Also, this StackOverflow answer agrees with me. Can you point out any other differences? |
bnoordhuis
commented
Oct 12, 2016
Maybe you are simply being imprecise with language? You say 'module' but going by the link you posted, you really mean |
Checklist
Affected core subsystem(s)
src,lib
Description of change
Minor cleanup of how --debug-brk works:
object.
determine if --debug-brk was specified.
We may overwrite the debuglistener with the dummy listener when --expose-debug-as=v8debug
was otherwise present on the command line.
This in anticipation of an upcoming PR with v8-inspector support.
R=@bnoordhuis
/cc @eugeneo