New issue
Advanced search Search tips

Issue 874865 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Sep 25
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

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.
 
log.json
22.1 KB View Download
Labels: Needs-Triage-M68
Owner: kozy@chromium.org
Status: Assigned (was: Unconfirmed)
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?
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.
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.
Status: WontFix (was: Assigned)

Sign in to add a comment