Closed Bug 972960 Opened 11 years ago Closed 11 years ago

Watch expressions change and execute in the wrong scope

Categories

(DevTools :: Debugger, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 876655

People

(Reporter: jaws, Unassigned)

Details

STR (Using the Browser Debugger but probably same for content debugger): Set a breakpoint in a nested function. When the breakpoint is hit, move up the call stack to the caller. Add a watch variable ER: The watch variable is evaluated and the current scope doesn't change. AR: The current scope is changed and then the watch variable is evaluated. This breaks some things. First, if you are trying to evaluate a local variable in a caller then the evaluation will fail saying that the reference is undefined. Second, it is annoying that the scope changes because now you have to go back up the call stack to continue debugging.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.