If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Debugger has no access to const-declared variables in this page

NEW
Unassigned

Status

()

Firefox
Developer Tools: Debugger
2 years ago
2 years ago

People

(Reporter: hallvors, Unassigned)

Tracking

46 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

2 years ago
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

2 years ago
Version: 35 Branch → 46 Branch
You need to log in before you can comment on or make changes to this bug.