Closed Bug 1539142 Opened 6 years ago Closed 6 years ago

Log point can't access original variables

Categories

(DevTools :: Debugger, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1536857

People

(Reporter: Honza, Unassigned)

Details

It looks like a logpoint expression can't access variables from the original scope (it seems that it can only access generated variables).

STR:

  1. Load http://janodvarko.cz/tests/bugzilla/1539142/
  2. Open webpack/src/App.js
  3. Create a logpoint with the following expression: sum (it's a function imported and available in the scope)
  4. Click Click Me button on the page
  5. Watch the Console panel: sum is not defined

Note that logging _foo.sum works (available in generated scope)

Honza

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.