-
Notifications
You must be signed in to change notification settings - Fork 715
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
phantom breakpoints #314
Comments
See How can I (selectively) delete debug session metadata in README. Before you delete the data, could you please post the content of |
If you bear with me while I fail to give you the information you've requested :) window.localStorage.breakpoints all look well formed, and the phantoms are in there. Now that I've looked at the console, I see that there's a stack trace.
This error appears for each of the broken breakpoints. I did a little bit more digging and it appears that
is still being populated while this _didSetBreakpointInDebugger method is being run. More scripts appear between invocations and if I check the array manually a little later all the missing scripts are there. |
Thank you for the details, it looks like a race condition. If you can afford to spend some more time on this: could you please run |
okay, I haven't looked at the node-inspector source at all but this is what I'm seeing in the log: devtools is the front end, ni is the node inspector process and v8 is the process being debugged. ni requests scripts from v8 So I guess ni should hold back on relaying the setexceptionbreak message to devtools until it has sent the scriptParsed message for that script. |
This issue appears to stem from 95b68be#diff-b5057ff30170333370f865bfd603e734 when _getSourceMapUrl was introduced with an async.waterfall to allow source maps be retrieved from the process being debugged. Even though in my case the script contents are already in memory, the use of async.waterfall allows the setbreakpoint events to come before the scriptParsed event. |
As a workaround, you can select "Remove all breakpoints" from the right-click menu in the breakpoints section. (If there are no breakpoints in the list you have to create one first.) |
v0.7.0
It's breaking on old breakpoints that are no longer in the Breakpoints list. These breakpoints are actually from previous instantiations of both NI and the process being debugged. As they aren't in the list, I cannot disable them using the checkbox method. It does populate the Breakpoints section with some older breakpoints, but these points don't necessarily seem to work, even if they start checked, although some do.
I've tried toggling breakpoints on the phantom lines but no joy.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: