Disable breakpoints should register on devtools open
Categories
(DevTools :: Debugger, defect, P2)
Tracking
(firefox70 fixed)
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: jackdesbwa, Assigned: jlast)
References
Details
(Whiteboard: [debugger-reserve])
Attachments
(2 files)
Observed on 68.0.1 (64 bits) on Archlinux, but I remember it was present in older versions although I did not understand what happened before.
- Deactivate debugger/exceptions (icon at the right in the step-in, next, step-out buttons bar)
- Open a new tab with a page containing a bug, for example a one which opens a popup after a few seconds but did not check answer (blocked popup) before accessing it.
- Before the bug happen, open the dev tools (I usually open network monitor Ctrl-Shift-E)
When the bug arises, the tab switches to debugger and stop the code on the error, despite debugger is disabled. (bad)
The debugger disabled symbol is present (good)
After hitting playing button, no further error is triggered (good)
As the debugger/exceptions are disabled, the debugger should ignore the event and do not stop execution, do not switch to debugger tab.
By the way, because of a confusing disabled symbol, I did not understand what happened before. I usually clicked on the symbol (switching debug enable status) and than behavior was even more confusing. A bit later, I thought I had to enable/disable to make it work as expected, and finally I realize that it seems to be only the first time (thus clicking on the button is not required to workaround) as if the disabled status is taken into account only when the tab has been opened.
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Hi, have you tried upgrading to the latest release. i believe this was fixed in the past couple of months.
Reporter | ||
Comment 2•5 years ago
|
||
As far as I can see, 68.0.1 is the latest stable release for Firefox on Linux right now.
I found another package [so that it is easy to do the test] named firefox-developer-edition which is in version 69.0b7 => same behavior.
To help to reproduce, I managed to get a minimal page that exhibit the problem, which is attached.
- Disable debugger
- Open the file in a new tab
- Open network tab of dev tools Ctrl-Shift-E
- Click on the page to emit debugger event
Expected: no debugger action
Observed: debugger tab is opened and execution is stopped
(same as before, with same correct behavior after hitting play)
Additional observations:
- If debug tab is opened instead of network tab, the bug is not present
- If debug tab was opened first than network tab is selected, the bug is not present
Assignee | ||
Comment 3•5 years ago
•
|
||
Ahh, i see. If devtools is open, the debugger will pause and open the Debugger Panel. That is part of the spec. Sorry for the confusion.
Assignee | ||
Updated•5 years ago
|
Reporter | ||
Comment 4•5 years ago
|
||
I am not sure to understand you, or that you understood the subtle misbehavior I saw.
A behavior that is different depending on the path the tool is accessed sounds like a corner case, not a spec.
To help clarifying, I will expose the context in which I found it:
I like the debugger functionality when I do web development (even if I do few) but most of the time (regular navigation) it is useless for me. Thus, the "disable" button is almost always checked, except when I need it enabled.
However, I sometimes use inspector or network tabs on pages I do not maintain for various reasons. But several website have minor bugs that trigger the debugger despite my disablement. It is hugely annoying.
I have no idea how it works internally, but from an external point of view, it looks like:
- a bug arises
- the engine checks if dev-tools is opened [and probably if disabled, but this information is not up-to-date?]
- switch to debugger tab / stop execution
- load disabling state (too late)
Next bugs (after hit of play button) do not open the tab again as expected.
The other way is (again external point of view):
- debugger tab opened (by user), it loads disabling state (not too late)
- user action: change tab
- a bug arises
- the engine checks disabled state and does nothing special (behavior expected)
Am I wrong to consider that something like "when a bug arises and the dev-tools is opened, switch to debugger tab ignoring the disable button state, unless the debug tab was previously opened" sounds like a really stupid spec thus is likely a bug?
Hope to have been more clear this time.
Reporter | ||
Comment 5•5 years ago
|
||
I just realized that I used the term tab for both browsing tabs and dev-tools panels which can be confusing.
It can be deduced from the context, but in last message "user action: change tab" does not have context at all; in this case, it is dev-tols panel.
Reporter | ||
Comment 6•5 years ago
|
||
Because of absence of answer, I reopened it in another ticket #1570892
Assignee | ||
Comment 8•5 years ago
|
||
Thanks for clarifying jackdesbw. I see what you're saying now. It would be nice if the disable breakpoints button would work even if the debugger is not open.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 9•5 years ago
|
||
Updated•5 years ago
|
Comment 10•5 years ago
|
||
The priority flag is not set for this bug.
:jlast, could you have a look please?
For more information, please visit auto_nag documentation.
Assignee | ||
Updated•5 years ago
|
Comment 11•5 years ago
|
||
Comment 12•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Description
•