Sorry if this isn't the right place to ask this.
I took wasmtime for a spin and it's very impressive.
My setup for debugging didn't work sadly and I was curious what was the common way to step through code in wasmtime, if there is one.
I use the C/C++ extension on VS Code with GDB on Linux, works well for Rust native, with wasmtime however I wasn't able to make it work (added "miDebuggerArgs": "wasmtime"
in launch.json
).
In the command line it works well enough with gdb wasmtime
and lldb wasmtime
Wondering if anyone had any success on VS Code. Thanks!
Great to hear that Wasmtime works well for you!
@Yury Delendik is the expert on all things debugging, and I know that he has debugging in VS Code working, and might be able to help
just to clarify, @Philippe Parisot are you trying to debug JIT'ed wasm code compiled from C or Rust, and not wasmtime itself?
Yes sorry
To be able to step through rust code running on wasmtime via VS Code
Was wondering if anyone was already able to do this
I did it in the past, but you will need specific VSCode extension (don't remember which one, maybe CodeLLDB)
args shall include "wasmtime" and "-g" too
Screen shot from old demo video
Screen-Shot-2020-10-08-at-3.04.46-PM.png
Awesome thanks @Yury Delendik for the quick help!
Gonna give it a shot
What @Yury Delendik is describing does work for me (CodeLLDB
plugin), albeit with another language, not Rust. On macOS I constantly see https://github.com/bytecodealliance/wasmtime/issues/2127. Normally you have to press the green triangle a few times to get started.
Last updated: Nov 22 2024 at 16:03 UTC