Closed Bug 1530549 Opened 2 years ago Closed 1 year ago

Debugger steps over when I click "Step out"


(DevTools :: Debugger, defect)

65 Branch
Not set


(firefox-esr60 unaffected, firefox65 wontfix, firefox66 fixed, firefox67 fixed)

Firefox 67
Tracking Status
firefox-esr60 --- unaffected
firefox65 --- wontfix
firefox66 --- fixed
firefox67 --- fixed


(Reporter: Oriol, Assigned: loganfsmyth)



(Keywords: regression)


(2 files)

  1. Run this code in the console:
(function() {
  var a = 1;
  a = 2;
  a = 3;
  a = 4;
  1. The debugger pauses at debugger.
  2. Click "Step out", the debugger steps out and pauses at var a = 1
  3. Click "Step out" again and again. The debugger steps over instead of exiting the function.

Regression window:

I suspect bug 1508314

Flags: needinfo?(bhackett1024)

You are correct about which bug introduced this, patch incoming.

Flags: needinfo?(bhackett1024)
Assignee: nobody → lsmyth
Pushed by
Ensure that _clearSteppingHooks() runs _after_ we pause. r=jlast
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 67

Please request uplift to beta when you get a chance.

Has Regression Range: --- → yes
Has STR: --- → yes
Keywords: regression

Comment on attachment 9047095 [details]
Bug 1530549 - Ensure that _clearSteppingHooks() runs after we pause. r=jlast!

Beta/Release Uplift Approval Request

  • Feature/Bug causing the regression: Bug 1508314
  • User impact if declined: JS debugger's stepOut stepping feature will behave in unexpected ways that can be frustrating for users
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This change can only affect the call to this_clearSteppingHooks() since that is the only function call that happens between the new and old _state initialization location, and that is specifically the case that we are fixing by moving this line.
  • String changes made/needed:
Attachment #9047095 - Flags: approval-mozilla-beta?

Comment on attachment 9047095 [details]
Bug 1530549 - Ensure that _clearSteppingHooks() runs after we pause. r=jlast!

Fix limited to debugger, OK for beta uplift.

Attachment #9047095 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

There are conflicts while uplifting to beta.
warning: conflicts while merging devtools/server/actors/thread.js! (edit, then use 'hg resolve --mark')
warning: conflicts while merging devtools/server/tests/unit/xpcshell.ini! (edit, then use 'hg resolve --mark')

:loganfsmyth , can you please take a look?

Flags: needinfo?(lsmyth)
Attached patch bug1530549.patchSplinter Review

Here is a new patch that won't conflict on 66, sorry about that.

Should I mark this one for beta now, or is the approval on the other one acceptable?

Flags: needinfo?(lsmyth) → needinfo?(nbeleuzu)
Flags: needinfo?(nbeleuzu)
Flags: qe-verify-
You need to log in before you can comment on or make changes to this bug.