Local scope object not updated
Reported by
vite...@gmail.com,
Aug 16
|
|||
Issue description
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36
Steps to reproduce the problem:
function f(x) {
var t = 1;
console.log(x); // breakpoint here
console.log(t);
}
f(5);
1. Set a breakpoint
2. When breakpoint is hit, send request Debugger.evaluateOnCallFrame() with expression "x=3"
3. Send request Runtime.getProperties with objectId of local scope object.
4. The value in local scope object is not updated
What is the expected behavior?
The value of the variable in local scope object must be updated.
What went wrong?
The value in local scope object is not updated.
Did this work before? N/A
Chrome version: 68.0.3440.106 Channel: stable
OS Version: OS X 10.13.6
Flash Version:
Global scope object updated properly.
If execution resumed, then local scope object is updated.
,
Aug 16
Thanks for the report. In DevTools, the 'Scope' section in the Sources sidebar does not live update unless the debugger steps or pauses. kozy@, wdyt?
,
Aug 17
I am not sure that you can notice the problem directly in Devtools. I noticed it because I use the Devtools protocol for the external debugger.
,
Sep 24
It is expected behavior, we capture scope object at moment when current pause happens. Unfortunately we do not have a way to update scope object in effective way without full scope traversing.
,
Sep 25
|
|||
►
Sign in to add a comment |
|||
Comment 1 by swarnasree.mukkala@chromium.org
, Aug 16