-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
--inspect crash in Node >=14.0.0 when accessing global variable in devtools #36845
Comments
I can reproduce. I'm preparing a debug build to get a better stack trace. |
|
This only happens with the Chrome devtools. I cannot reproduce using |
@nodejs/inspector |
The code below is simpler and could also reproduce: // test.js
const inspector = require('inspector');
setInterval(() => {
inspector.console.log('heartbeat')
}, 1000);
|
I am not sure if I am helping at all - but I just found this bug also. I am running node v14.15.4 on Fedora. |
I just had this issue. But instead of accessing variables, it happens to me whenever I have an array typed in the debugger and when it changes, it crashes. I have a WS array and whenever someone tries connecting, which adds to the array, node crashes if I have a line entered that references the array. If I wait for them to connect and then type the line, it doesn't crash. (tried node 16 and 15) PS - If anyone has any alternative debugging module for node.js I'd love to hear it |
I can no longer reproduce this as of node 16.6.0. |
I'm unable to reproduce this locally, and given that there's been no further discussion or activity on this in years, I'm going to go ahead and close the issue. It can be reopened if necessary. |
end
event if there is no underlying data #65~18.04.1-Ubuntu SMP Mon Dec 14 15:59:40 UTC 2020 x86_64 x86_64 x86_64 GNU/LinuxWhat steps will reproduce the bug?
Run below test.js by using
node --inspect=0.0.0.0:9229 test.js
and inspect the file withchrome://inspect
in Chrome (I am using Windows 10).In the chrome dev tools try to access the "test" variable by typing
test
in the devtools. The node process will crash on the first try or on your next couple calls.How often does it reproduce? Is there a required condition?
It happends consistently after the first 1-5 tries when accessing the "test" global variable.
What is the expected behavior?
Not crash and return the results like in Node <= 13
What do you see instead?
Additional information
This only started happenening since Node version 14.0.0. Before, in v13.14.0, this crash does not happen.
The text was updated successfully, but these errors were encountered: