Closed Bug 1536857 Opened 5 years ago Closed 4 years ago

Map scopes for Logpoints

Categories

(DevTools :: Debugger, enhancement, P5)

enhancement

Tracking

(firefox78 fixed)

RESOLVED FIXED
Firefox 78
Tracking Status
firefox78 --- fixed

People

(Reporter: Harald, Assigned: wartmanm)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-complete)

Attachments

(3 files, 1 obsolete file)

What were you doing?

Add a logpoint to a source mapped file and reference a variable.

STR:

  • Open Debugger on send.firefox.com
  • Open dragManager.js and add a breakpoint in the default export
  • Change the breakpoint into a logpoint with state as expression
  • Refresh

What happened?

Error: state is not defined

The variable state isn't found, as it is mapped to variable t.

What should had happened?

state is correctly mapped and referenced.

Another test case (from dup bug):

  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

Honza

Has STR: --- → yes
Type: defect → enhancement
Priority: P3 → P5
Attached file Bug 1536857 - Map scopes for Logpoints (obsolete) —
Assignee: nobody → wartmanm
Status: NEW → ASSIGNED
Pushed by jlaster@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5b4e497afd6b
Map scopes for Logpoints r=loganfsmyth
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 78
Blocks: 1635587
Attachment #9139232 - Attachment is obsolete: true

We should call out this feature in MDN to make it easier to find via https://phabricator.services.mozilla.com/D80280.

Keywords: dev-doc-needed

Added a note to Set a logpoint, pointing out that logpoints can be used with source-mapped code.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: