2 Star 3 Fork 1

RT-Thread-Mirror / wasm-micro-runtime

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
source_debugging.md 731 Bytes
一键复制 编辑 原始数据 按行查看 历史

WAMR source debugging

Build wasm application with debug information

To debug your application, you need to compile them with debug information. You can use -g option when compiling the source code if you are using wasi-sdk (also work for emcc and rustc):

/opt/wasi-sdk/bin/clang -g test.c -o test.wasm

Then you will get test.wasm which is a WebAssembly module with embedded DWARF sections. Further, you can use llvm-dwarfdump to check if the generated wasm file contains DWARF information:

llvm-dwarfdump-12 test.wasm

Debugging with interpreter

See Debugging with interpreter.

Debugging with AOT

See Debugging with AOT.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/RT-Thread-Mirror/wasm-micro-runtime.git
git@gitee.com:RT-Thread-Mirror/wasm-micro-runtime.git
RT-Thread-Mirror
wasm-micro-runtime
wasm-micro-runtime
main

搜索帮助

344bd9b3 5694891 D2dac590 5694891