Hi,

While it's possible to inspect WASM locals/stack through DevTools, there 
seems to be no way to change their values. I'm wondering if there's a 
reason why this was not implemented.

>From my understanding, when debugging, the baseline compiler is always 
used, which doesn't optimize away locals (?), so that shouldn't pose a 
problem. wasm-debug.cc has GetValue/GetLocalValue/GetStackValue and it 
would look fairly trivial to implement functions for setting them, and then 
updating LocalsProxy/StackProxy to have a setter. The only edge case I can 
think of are constant values.

Am I missing something? I could not find any discussions on this topic.

Thanks!

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/v8-dev/ad58f2fe-894d-433d-b226-114cc20314a1n%40googlegroups.com.

Reply via email to