Closed
Bug 1536857
Opened 6 years ago
Closed 5 years ago
Map scopes for Logpoints
Categories
(DevTools :: Debugger, enhancement, P5)
DevTools
Debugger
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 thedefault
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.
Reporter | ||
Comment 1•6 years ago
|
||
Comment 3•6 years ago
|
||
Another test case (from dup bug):
- Load http://janodvarko.cz/tests/bugzilla/1539142/
- Open webpack/src/App.js
- Create a logpoint with the following expression:
sum
(it's a function imported and available in the scope) - Click
Click Me
button on the page - Watch the Console panel:
sum is not defined
Honza
Updated•6 years ago
|
Has STR: --- → yes
Updated•6 years ago
|
Priority: -- → P3
Updated•6 years ago
|
Type: defect → enhancement
Priority: P3 → P5
Updated•5 years ago
|
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
Comment 7•5 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
status-firefox78:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 78
Updated•5 years ago
|
Attachment #9139232 -
Attachment is obsolete: true
Reporter | ||
Comment 8•4 years ago
|
||
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
Comment 9•4 years ago
|
||
Added a note to Set a logpoint, pointing out that logpoints can be used with source-mapped code.
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•