If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Adding watch expression from the debugger does not work

RESOLVED FIXED

Status

()

Firefox
Developer Tools: Debugger
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: Mack Duan, Unassigned)

Tracking

19 Branch
x86
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

5 years ago
With the debugger paused on a line:
1) Click "Add watch expression", causing input box to show
2) Type the name of a variable in the function scope
3) Press enter

After the steps above, the message "Add watch expression" replaces the input box. No watch expressions are shown
(In reply to Mack Duan from comment #0)
> With the debugger paused on a line:
> 1) Click "Add watch expression", causing input box to show
> 2) Type the name of a variable in the function scope
> 3) Press enter
> 
> After the steps above, the message "Add watch expression" replaces the input
> box. No watch expressions are shown

What page have you tested on?

Does it still happen in Nightly? I remember an issue with watch expressions throwing and not showing at all if there was a "use strict" statement in the targeted script, but that should have been fixed with bug 832470.
(Reporter)

Comment 2

5 years ago
Ah, yes, it does seem to be related to 'use strict'. I can add watch expression after I remove the 'use strict' declaration.
(Reporter)

Comment 3

5 years ago
And it looks fixed in Nightly. Thanks!
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.