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

UNCONFIRMED
Unassigned

Status

()

Firefox
Developer Tools: Debugger
UNCONFIRMED
6 months ago
6 months ago

People

(Reporter: Jani, Unassigned)

Tracking

56 Branch
x86_64
Windows 10
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

532 bytes, application/x-zip-compressed
Details
32.08 KB, image/png
Details
(Reporter)

Description

6 months ago
Created attachment 8903048 [details]
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.
(Reporter)

Comment 1

6 months ago
Created attachment 8903049 [details]
Results
(Reporter)

Updated

6 months ago
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

Updated

6 months ago
Component: Untriaged → Developer Tools: Debugger
You need to log in before you can comment on or make changes to this bug.