[Lldb-commits] [lldb] [lldb] Implement WebAssembly debugging (PR #77949)

Xu Jun via lldb-commits lldb-commits at lists.llvm.org
Tue Jan 23 08:12:36 PST 2024


xujuntwt95329 wrote:

Thanks @paolosevMSFT for the great work! We have implemented debugger server in [WebAssembly Micro Runtime (WAMR)](https://github.com/bytecodealliance/wasm-micro-runtime) to work with this, and it works well!
![image](https://github.com/llvm/llvm-project/assets/20285361/bb2f2167-8389-4ac3-976e-8f9e6e35fe4b)

The experience of debugging dwarf-based WebAssembly modules is similar to the native elf, and with lldb‘s DAP tool, we can easily debug this in a UI friendly environment such as VSCode. This is really exciting and greatly improves the usability of WebAssembly  :)

Previously we maintain a huge patch file (which was created from @paolosevMSFT's patches) and tell the users to patch lldb source and build the customized lldb binary. We hope this can be upstream and shipped with official build, then people can enjoy debugging WebAssembly more conveniently

https://github.com/llvm/llvm-project/pull/77949


More information about the lldb-commits mailing list