-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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 race condition #25215
Comments
I tried to recreate this, I found that process is ending before any timer is called. Using PD: I just put this at the end of the file |
Any news about this issue? I have to add an ugly "wait for 300ms" rule in our testing tool Siesta to workaround it. |
Should be very easy to fix, as the |
I am not sure what is the bug here. |
I do not agree with this. From usability perspective, when I place And if the behavior is - "yes, it will stop, but only after 300ms after the process start or so, may be after 100ms if you are lucky" - then I would say its a bug and race condition. The correct behavior would be:
|
Or rather, the correct behavior should be:
Any updates on this issue? The experience of debugging simple node scripts is still not optimal. |
The thing is @canonic-epicure we get this behavior from Chrome and the Chrome DevTools that need an inspector attached but won't pause anything without an actual debugger connected. This makes sense and is how debuggers behave in other languages and environments too - you can tell the debugger "always pause when told" and launch with |
@canonic-epicure the way your frontend should work is:
|
There has been no activity on this feature request for 5 months and it is unlikely to be implemented. It will be closed 6 months after the last non-automated comment. For more information on how the project manages feature requests, please consult the feature request management document. |
There has been no activity on this feature request and it is being closed. If you feel closing this issue is not the right thing to do, please leave a comment. For more information on how the project manages feature requests, please consult the feature request management document. |
n
The activation of the
--inspect
cmd option is subject to race condition. To reproduce:debugger.js
with the content:Launch it first with:
node --inspect-brk debugger.js
to open the Inspector window in the Chrome dev tools
Then launch it several times with:
node --inspect debugger.js
Observe most of the times ALL breakpoints are ignored, sometimes ALL are activated, sometimes only the one with 300ms delay.
Expected behavior - all breakpoints are expected to always be honored, including the very 1st one.
The text was updated successfully, but these errors were encountered: