Closed Bug 1371001 Opened 7 years ago Closed 6 years ago

Deleted breakpoints reappears after page reload.

Categories

(DevTools :: Debugger, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mayhemer, Unassigned)

Details

Windows, Nightly x64 official build from https://hg.mozilla.org/mozilla-central/rev/5801aa478de12a62b2b2982659e787fcc4268d67

STR:
- open console
- add some breaks points to JS on the page (a linked script on the same origin)
- debug for awhile
- delete all the breakpoints (which ever way - all or one by one)
- reload the page (while not paused in the debugger)
=> breakpoints reappear and annoy
(ok, only way is to delete one by one, but whatever..)
Per Jason, this if fixed.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
And per me, this is not fixed.  Happens to me again, not sure on initial STR, but from a certain moment when I delete all breakpoints on a page, reload the page while devtools/debugger is left open, breakpoints reappear again (fortunately disabled this time).

I think I may have pressed F5 when the page was in focus and paused in a debugger on a breakpoint.  This is the only thing coming to my mind that could cause this, but I'm not sure at all.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(In reply to Honza Bambas (:mayhemer) from comment #3)
> I think I may have pressed F5 when the page was in focus and paused in a
> debugger on a breakpoint.  This is the only thing coming to my mind that
> could cause this, but I'm not sure at all.

Forget about this str.  It happens all the time to me.
Looks like devtools.debugger.pending-breakpoints is filled with breakpoints that should have already been deleted.  This pref value length is 5k+ long.  There is some 15 or more leftovers.

There is a warning about writing this pref in the browser console, could that be the source of this bug?

" Warning: attempting to write 5906 bytes to preference devtools.debugger.pending-breakpoints. This is bad for general performance and memory usage. Such an amount of data should rather be written to an external file. This preference will not be sent to any content processes. "
Flags: needinfo?(hkirschner)
Status: REOPENED → NEW
Jason, could the recovery logic improved that you added that resets the breakpoints when the server returns unexpected state?
Flags: needinfo?(hkirschner) → needinfo?(jlaster)
BTW, after resetting the preference to "{}" this appeared very soon again (too long string to be stored).
Sorry for the delay. This has been fixed and verified in dev-edition.
Flags: needinfo?(jlaster)
Status: NEW → RESOLVED
Closed: 7 years ago6 years ago
Resolution: --- → FIXED
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.