-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression in inspectors when entering certain frames #32648
Labels
inspector
Issues and PRs related to the V8 inspector protocol
Comments
3 tasks
addaleax
added a commit
to addaleax/node
that referenced
this issue
Apr 5, 2020
This is necessary for `--inspect-brk-node` to work, and for the inspector to be aware of scripts created before bootstrapping. Fixes: nodejs#32648 Refs: nodejs#30467 (comment)
Thanks for the swift response, @addaleax. I verified that the linked PR fixes the problem for me. |
BethGriggs
pushed a commit
that referenced
this issue
Apr 14, 2020
This is necessary for `--inspect-brk-node` to work, and for the inspector to be aware of scripts created before bootstrapping. Fixes: #32648 Refs: #30467 (comment) PR-URL: #32672 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Eugene Ostroukhov <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: James M Snell <[email protected]>
addaleax
added a commit
to addaleax/node
that referenced
this issue
Sep 23, 2020
This is necessary for `--inspect-brk-node` to work, and for the inspector to be aware of scripts created before bootstrapping. Fixes: nodejs#32648 Refs: nodejs#30467 (comment) PR-URL: nodejs#32672 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Eugene Ostroukhov <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: James M Snell <[email protected]>
addaleax
added a commit
that referenced
this issue
Sep 23, 2020
This is necessary for `--inspect-brk-node` to work, and for the inspector to be aware of scripts created before bootstrapping. Fixes: #32648 Refs: #30467 (comment) Backport-PR-URL: #35241 PR-URL: #32672 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Eugene Ostroukhov <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: James M Snell <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Recently on master there seems to be a regression in inspecting. For example, I can't seem to enter the constructor of
EventEmitter
while debugging. With node-inspect, the process exits when you try to enter an affected frame (which may be a separate bug in node-inspect), and with Chromium devtools simply nothing happens when trying to enter an affected frame. I bisected this down to commit a9fb51f.What steps will reproduce the bug?
It's most obvious when using node-inspect. Here's a snippet that reproduces it reliably for me:
debuggerbug.js:
Run this in node-inspect, step to next line, then step in, and node-inspect will exit.
How often does it reproduce? Is there a required condition?
Once you hit a frame that exhibits the behaviour, it reproduces 100% of the time.
What is the expected behavior?
Debugging the snippet listed above with node 12.16.1:
What do you see instead?
Debugging the snippet listed above with node built from master:
Additional information
It's quite possible that this uncovers a separate bug in node-inspect, but I reported it here first because it seems to affect all inspectors. Using
./node --inspect-brk debuggerbug.js
with Chromium devtools, you also cannot enter the EventEmitter frame. The UI does nothing when you click the Step In button.The text was updated successfully, but these errors were encountered: