Closed
Bug 1238934
Opened 8 years ago
Closed 5 years ago
Debugger has no access to const-declared variables in this page
Categories
(DevTools :: Debugger, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: hsteen, Unassigned)
References
()
Details
1) Load link 2) Open debugger 3) Set it to break on click events (Note: the only click event listed seems to be for a very specific node - I think the page has a global click listener too??) 4) Click a link 5) Start stepping. You will see code like const target = closestByTag(e.target, 'A'); if (!target) { return; } let elem = null; const docElement = e.currentTarget; const doc = docElement.ownerDocument; const tgtLoc = parseUrl(target.href); if (!tgtLoc.hash) { return; } For some odd reason, the debugger seems not to have access to those const declared variables. Hovering them gives no tooltip, typing them into the console or in "watch" field says they are undefined. This is weird. Perhaps something to do with the page doing "module" stuff, or with sourcemaps??
Reporter | ||
Updated•8 years ago
|
Version: 35 Branch → 46 Branch
Updated•6 years ago
|
Product: Firefox → DevTools
Comment 1•5 years ago
|
||
Hmm, i can't find this code now.
My guess is this is now fixed though.
Updated•5 years ago
|
Whiteboard: needs-review
Comment 2•5 years ago
|
||
Feel free to re-open if this is still an issue.
Comment 3•5 years ago
|
||
This should be fixed in the new Debugger UI, closing.
Honza
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
Whiteboard: needs-review
You need to log in
before you can comment on or make changes to this bug.
Description
•