Pausing JS stops in blackboxed sources

NEW
Unassigned

Status

()

Firefox
Developer Tools: Debugger
P5
normal
10 months ago
9 months ago

People

(Reporter: Yajo, Unassigned)

Tracking

51 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

10 months ago
User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0
Build ID: 20170126153103

Steps to reproduce:

Developing a page, I try to know what is triggering some weird behavior. All events are attached through jQuery, so...

1. Open Debugger.
2. Select jQuery.js.
3. Toggle black box mode.
4. Press pause button.
5. Try to trigger the weird behavior.


Actual results:

The debugger pauses inside jQuery just by entering the page with the mouse (probably a mouseover event somewhere). The debugger screen is black.


Expected results:

The debugger should have paused when any event reached code outside blackboxed files. After all, the blackbox concept is "I don't care what happens inside this".

Updated

10 months ago
Component: Untriaged → Developer Tools: Debugger

Comment 1

9 months ago
It's not clear to me how to implement anything more sensible.
Single-stepping the JS engine until it hits non-black-boxed code would
be very slow.  There's no guarantee that even this will ever hit such code --
maybe you've black-boxed all the sources along some particular code path.

I considered wontfixing this, but maybe someone will come up with something clever.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.