Resume lands on the same location
Categories
(DevTools :: Debugger, defect, P2)
Tracking
(firefox69 fixed)
Tracking | Status | |
---|---|---|
firefox69 | --- | fixed |
People
(Reporter: jlast, Assigned: jlast)
References
(Blocks 1 open bug)
Details
(Whiteboard: [debugger-mvp])
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Updated•7 years ago
|
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Comment 1•6 years ago
|
||
(In reply to Jason Laster [:jlast] from comment #0)
- go to https://dbg-two-step.glitch.me/
- go to client.js and add a breakpoint on line 48 and 49
- click simple button
- pause, resume, resume
ER: land on debugger statement, pause on foo, resume
AR: land on debugger statements twice, pause on foo twice
I followed this STRs and for me the debugger pauses:
- twice at the
debugger
keyword - just once at
foo
Honza
Assignee | ||
Comment 3•6 years ago
|
||
Updated•6 years ago
|
Comment 5•6 years ago
|
||
The core issue here is that stepping currently performs this check: https://searchfox.org/mozilla-central/source/devtools/server/actors/thread.js#680 but onDebuggerStatement
runs after that and has no such check, so if you step to a debugger statement, you're actually paused just before it runs, and then if you try to step again, the onDebuggerStatement
hooks runs and we pause there too. We'd need to consistently keep track of either our most recent position, or our most recent paused frame.offset
value. Personally I'd love for that to be based on frame.offset
so if someone wanted to do that as part of this work I'd support it, but I also understand if just preserving the same logic we have for if (!lineChanged && !columnChanged) {
is easier.
The same is true for breakpoint hit
. Breakpoints run after onStep handlers, so you'll pause once at the step handler, and then resuming/stepping again will hit the breakpoint and pause again.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 6•5 years ago
|
||
Updated•5 years ago
|
Comment 8•5 years ago
|
||
bugherder |
Description
•