Closed
Bug 832234
Opened 11 years ago
Closed 11 years ago
Resume behaves like step-out after a step-in
Categories
(DevTools :: Debugger, defect, P2)
DevTools
Debugger
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 25
People
(Reporter: vporof, Assigned: past)
References
Details
Attachments
(1 file, 1 obsolete file)
4.82 KB,
patch
|
rcampbell
:
review+
|
Details | Diff | Splinter Review |
STR: 1. Open debugger on http://htmlpad.org/step-out-vs-resume/ 2. Add a breakpoint on line 18 3. Click me 4. Step in 5. Resume Debugger pauses on line 19. I'd expect it to resume and finish executing all the scripts, since there's no other breakpoint set.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → past
Priority: -- → P2
Comment 2•11 years ago
|
||
Thanks :vp, I'll keep my eye on 890863
Assignee | ||
Comment 3•11 years ago
|
||
I thought about this yesterday on the beach and the fix was rather simple. I still need to write a test and fix a broken one (test_blackboxing-01.js)
Assignee | ||
Updated•11 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•11 years ago
|
||
We had a number of workarounds in a couple of our tests to avoid this issue, which I removed, and they can now serve as a test for the new correct behavior. Let me know if you would prefer a separate test for this change though.
Attachment #776241 -
Flags: review?(rcampbell)
Comment 5•11 years ago
|
||
Comment on attachment 776241 [details] [diff] [review] Clear any previous stepping hooks on a plain resumption Review of attachment 776241 [details] [diff] [review]: ----------------------------------------------------------------- ::: toolkit/devtools/server/actors/script.js @@ +417,5 @@ > + // Clear any previous stepping hooks on a plain resumption. > + let frame = this.youngestFrame; > + while (frame) { > + frame.onStep = undefined; > + frame.onPop = undefined; do you like this better than delete? I suppose this way the properties stick around.
Attachment #776241 -
Flags: review?(rcampbell) → review+
Updated•11 years ago
|
Attachment #775354 -
Attachment is obsolete: true
Assignee | ||
Comment 6•11 years ago
|
||
(In reply to Rob Campbell [:rc] (:robcee) from comment #5) > ::: toolkit/devtools/server/actors/script.js > @@ +417,5 @@ > > + // Clear any previous stepping hooks on a plain resumption. > > + let frame = this.youngestFrame; > > + while (frame) { > > + frame.onStep = undefined; > > + frame.onPop = undefined; > > do you like this better than delete? I suppose this way the properties stick > around. That's right, I tried to make sure that the shape of the object wouldn't change. I'm not sure it matters much in this case, but it's a habit I've developed :-)
Assignee | ||
Comment 7•11 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/2327af3c6f07
Whiteboard: [fixed-in-fx-team]
Comment 8•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/2327af3c6f07
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 25
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•