debugger icon indicating copy to clipboard operation
debugger copied to clipboard

Module scope objects not displayed properly when paused in debugger

Open jaril opened this issue 7 years ago • 4 comments

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>

screen shot 2018-12-09 at 3 18 45 pm

module

<script type="module" src="main.js"></script>

screen shot 2018-12-09 at 3 20 00 pm

To reproduce:

  1. Clone https://github.com/notjaril/module-scope-example.git
  2. Open index.html
  3. Case 1 (text/javascript), set a breakpoint at main.js:7. Note the Scopes frame in the right sidebar
  4. Change the script type in index.html from text/javascript to module
  5. Case 2 (module), set a breakpoint at main.js:7. Note the Scopes frame in the right sidebar

jaril avatar Dec 09 '18 23:12 jaril

/claim

nagpalm7 avatar Jan 07 '19 16:01 nagpalm7

Thanks for claiming the issue! :wave:

Here are some links for getting setup, contributing, and developing. We're always happy to answer questions in slack! If you become busy, feel free to /unclaim it.

:fox_face: Debugger team!

claim avatar Jan 07 '19 16:01 claim

@nagpalm7 this could be quite hard... atleast a js engine bug.

jasonLaster avatar Jan 07 '19 20:01 jasonLaster

closing this as it is now in bugzilla

https://bugzilla.mozilla.org/show_bug.cgi?id=1518308

jasonLaster avatar Jan 07 '19 21:01 jasonLaster