Reparse sources with GC'ed scripts when getting breakpoint positions
Categories
(DevTools :: Debugger, enhancement, P2)
Tracking
(firefox70 fixed)
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: bhackett1024, Assigned: bhackett1024)
References
(Blocks 1 open bug)
Details
(Whiteboard: [debugger-reserve])
Attachments
(3 files)
Breakpoint positions for a source should reflect all places where breakpoints can be set in the source, but if scripts have been GC'ed then the positions returned by the server will be incomplete, preventing users from being able to set breakpoints within them, a pretty confusing behavior. We have the text for the source, so it can just be reparsed to figure out where the breakpoint positions are. For efficiency, it seems best to do this only when we know that scripts in the source might have been GC'ed. I'm reasonably sure that sources can contain at most one non-function script, which will the top level script and will hold all other scripts in the source alive. So, if we are able to find this script, we know that there aren't any missing breakpoint positions and can avoid reparsing.
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Comment 2•6 years ago
|
||
Depends on D41126
Assignee | ||
Comment 3•6 years ago
|
||
Depends on D41127
Updated•6 years ago
|
Updated•6 years ago
|
Comment 6•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/bc14494262b1
https://hg.mozilla.org/mozilla-central/rev/1c11235a668a
https://hg.mozilla.org/mozilla-central/rev/efe4a620841c
Description
•