You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run npx serve and Debug: Open Link on localhost:3000 to debug it (you can save this to a launch config for easy access later)
Find a way to step into some WebAssembly. For example, set a breakpoint inside printChar in fibonacci.js, navigate to localhost:3000/fibonacci.html, and select a few callframes up
Verify you step into decompiled WebAssembly and see the prompt for installing the DWARF extension. Accept the install.
Debugging
Stop and start a new debug session. Set a breakpoint in fibonacci.c, or any other c/cc file in that folder
Verify the breakpoint binds when you're on the page that loads that folder
Note: parsing of DWARF symbols is async and we currently cannot ask the browser to pause for us to set breakpoints, so some breakpoints may not be hit when you first go to a page. However, they should be hit on refresh.
Verify you can step around, see variables, and things generally make sense.
Try a few different examples in that repo/zip and see how they work.
Verify the command to enable and disable "sourcemap stepping" toggle whether you step in the assembly or source code
Variables are not directly editable, however you can open memory view and edit memory using the hex editor
The text was updated successfully, but these errors were encountered:
Refs: microsoft/vscode-js-debug#1789
Complexity: 4
Create Issue
js-debug can now understand DWARF debug symbols that are present in WebAssembly files.
Getting
shrunkDWARFnpx serve
andDebug: Open Link
on localhost:3000 to debug it (you can save this to a launch config for easy access later)printChar
infibonacci.js
, navigate tolocalhost:3000/fibonacci.html
, and select a few callframes upDebugging
fibonacci.c
, or any other c/cc file in that folderThe text was updated successfully, but these errors were encountered: