Debugger must show the wasm evaluation stack
Categories
(DevTools :: Debugger, enhancement, P5)
Tracking
(Not tracked)
People
(Reporter: lth, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 obsolete file)
Updated•6 years ago
|
Reporter | ||
Comment 1•5 years ago
|
||
I can't really emphasize enough how important wasm evaluation stack inspection will be for (a) outside developers who create programming languages that target wasm, some of whom will be crucial for wasm's eventual success, and (b) Firefox developers who fix bugs in the wasm implementation when wasm content starts showing up on the web in volume.
In my group P5 is a polite WONTFIX. Are we really not going to do anything to provide access to the wasm evaluation stack from the debugging tools?
Comment 2•5 years ago
|
||
I was triaging the debugger component last week and added all of the wasm related bugs I could find to bug 1550784. I'm not sure what the relative priority among the meta should be. I'm hoping Yury will be able to help us in the near future continue to make progress on the wasm related features.
Comment 3•5 years ago
|
||
Note that, for devtools to make progress on this, we'll need to add the raw capability to the Debugger API first. In fact, if we just expose the stack as a synthetic local in the Debugger.Frame/Environment, then I think it'll show up without any devtools changes.
Comment 4•5 years ago
|
||
(In reply to Luke Wagner [:luke] from comment #3)
Note that, for devtools to make progress on this, we'll need to add the raw capability to the Debugger API first. In fact, if we just expose the stack as a synthetic local in the Debugger.Frame/Environment, then I think it'll show up without any devtools changes.
What is the amount of work needed for the Debugger API work?
Honza
Comment 5•5 years ago
|
||
We'd need to expose the operand stack. Technically, the Debugger API might not need to change, but rather just expose the operand stack as locals (either as one stack
local containing an array or one local per operand stack, say, named [0]
, [1]
, ...). In both cases, the devtools might not need to change at all to expose the info, but of course there might be a more ideal visualization.
Updated•5 years ago
|
Comment 6•5 years ago
|
||
- Recording of stack operands in baseline compiler
- Add operandStack to frame
- Add "stack" to environment
Updated•4 years ago
|
Updated•2 years ago
|
Description
•