Closed
Bug 1518308
Opened 6 years ago
Closed 6 years ago
Module scope objects not displayed properly when paused in debugger
Categories
(DevTools :: Debugger, defect, P2)
DevTools
Debugger
Tracking
(firefox68 fixed)
RESOLVED
FIXED
Firefox 68
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: jlast, Assigned: bhackett1024)
References
(Blocks 1 open bug)
Details
(Whiteboard: [debugger-mvp])
Attachments
(3 files)
Expected behavior:
When paused in a breakpoint within a .js file with type="module"
, it should correctly display the module's scope block on the right sidebar.
Actual behavior:
Instead, only <this> : undefined
is displayed in that block.
Screenshots:
text/javascript
<script type="text/javascript" src="main.js"></script>
module
<script type="module" src="main.js"></script>
To reproduce:
- Clone https://github.com/notjaril/module-scope-example.git
- Open index.html
- Case 1 (text/javascript), set a breakpoint at main.js:7. Note the Scopes frame in the right sidebar
- Change the script type in index.html from
text/javascript
tomodule
- Case 2 (module), set a breakpoint at main.js:7. Note the Scopes frame in the right sidebar
Reporter | ||
Comment 1•6 years ago
|
||
Reporter | ||
Comment 2•6 years ago
|
||
Reporter | ||
Updated•6 years ago
|
Blocks: dbg-stepping
Reporter | ||
Updated•6 years ago
|
No longer blocks: dbg-stepping
Reporter | ||
Updated•6 years ago
|
Priority: -- → P2
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → bhackett1024
Updated•6 years ago
|
Status: NEW → ASSIGNED
Whiteboard: [debugger-mvp]
Assignee | ||
Comment 3•6 years ago
|
||
Assignee | ||
Comment 4•6 years ago
|
||
Exported and closed over variables actually show up OK in the scopes view. The problem is that unaliased locals are supposed to be exposed to the debugger (like they are in function/lexical/etc. scopes) but the necessary logic is missing.
Updated•6 years ago
|
Pushed by bhackett@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/45fb04e542c5
Include unaliased module scope variables in debug environments, r=jonco.
Comment 7•6 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox68:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 68
You need to log in
before you can comment on or make changes to this bug.
Description
•