Open Bug 1834296 Opened 1 year ago Updated 1 year ago

Debugger still pauses at lines which has disabled breakpoint when opening toolbox on another panel

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(firefox-esr102 affected, firefox113 affected, firefox114 affected, firefox115 affected)

ASSIGNED
Tracking Status
firefox-esr102 --- affected
firefox113 --- affected
firefox114 --- affected
firefox115 --- affected

People

(Reporter: nchevobbe, Assigned: bomsy)

Details

Attachments

(2 files)

Steps to reproduce

  1. Go to https://nchevobbe.github.io/demo/console-test-app.html
  2. Open the debugger
  3. In the source tree, select console-test-event-listeners.js
  4. Add a breakpoint on line 7 (if (e.target.tagName === "BUTTON") {)
  5. Disable it from the "Breakpoints" panel
  6. Close DevTools
  7. Re-open DevTools, but not with the debugger (e.g. use the Inspector, or Console), this is important to reproduce the bug
  8. Click in the content page

Expected results

The debugger does not pause

Actual results

The debugger pauses, even though the breakpoint on the line is disabled


I'm reproducing with a clean profile

Probably not recent as I was able to reproduce on 102.9.0esr

Flags: needinfo?(hmanilla)
  • Renamed the test to be more specific browser_dbg-breakpoints.js to browser_dbg-breakpoints-enable-and-disable.js
  • Cleanup the test to be simpler and more specific
  • Make sure to also t:est the server i.e make sure the disabled breakpoints do not actually get hit
Assignee: nobody → hmanilla
Status: NEW → ASSIGNED
Flags: needinfo?(hmanilla)
Severity: -- → S3
Priority: -- → P3
Pushed by hmanilla@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b5427bcae296
[devtools] Cleanup the test for enabling/disabling breakpoints r=devtools-reviewers,ochameau
https://hg.mozilla.org/integration/autoland/rev/e16305b72dc9
[devtools] Do not call setBreakpoints for disabled breakpoints on a reconfigure r=ochameau,devtools-reviewers

Backed out for dt failures on browser_dbg-breakpoints-enable-and-disable.js.

Push with failures: https://treeherder.mozilla.org/jobs?repo=autoland&selectedTaskRun=OdgAeDB4TM2CluJWAgmS1w.0&resultStatus=testfailed%2Cbusted%2Cexception%2Cretry%2Cusercancel&revision=e16305b72dc9cbebbd22cd92597a83f93fb8db71

Failure logs:

Backout link: https://hg.mozilla.org/integration/autoland/rev/77cc88a1e2b41c8157feb0979caaabaf8079d34d

Flags: needinfo?(hmanilla)

There are some r+ patches which didn't land and no activity in this bug for 2 weeks.
:bomsy, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.

Flags: needinfo?(poirot.alex)
Flags: needinfo?(hmanilla)

Investigating some issues.

Flags: needinfo?(hmanilla)
Flags: needinfo?(poirot.alex)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: