Closed Bug 1395466 Opened 7 years ago Closed 5 years ago

Developer Tools' commands shadow scope variables when the debugger is paused

Categories

(DevTools :: Debugger, defect, P3)

56 Branch
x86_64
Windows 10
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jani.lusikka, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

Attached file Test case
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
Build ID: 20170825011442

Steps to reproduce:

- Extract the attached test case (ff.zip)
- Open index.html
- Open Developer Tools
- Reload the page
- Point your mouse at values


Actual results:

Firefox incorrectly reports values being "undefined()" whereas it should be "test". Same happens for the console, but scopes panel reports the correct variable. See attached ff.png.


Expected results:

The variable values should be displayed as "test" at least when hovering the variable. I'm not sure about the console part, but personally I did expect writing "values" there would print the values object in scope and not the global command.
Attached image Results
OS: Unspecified → Windows 10
Hardware: Unspecified → x86_64
Summary: Developer Tools' commands shadow variables when the debugger is paused → Developer Tools' commands shadow scope variables when the debugger is paused
Component: Untriaged → Developer Tools: Debugger
Product: Firefox → DevTools
Blocks: dbg-scopes
Priority: -- → P3
Whiteboard: [debugger-mvp]
Whiteboard: [debugger-mvp]

This should now be fixed.

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

Attachment

General

Creator:
Created:
Updated:
Size: