diff options
author | Zoltan Varga <vargaz@gmail.com> | 2020-05-27 05:12:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-27 05:12:57 +0300 |
commit | 14ff5bd29a8aaf05a1b249fc9944fee9d7fc3dc9 (patch) | |
tree | e4dc6830c57a8d8faf09afaf57d3fae4fabbbba9 /sdks | |
parent | 540e8d1d7b2f57d94549ccd68a483fff97169ad9 (diff) |
[wasm] Add more runtime debugging docs. (#19850)
Diffstat (limited to 'sdks')
-rw-r--r-- | sdks/wasm/docs/runtime-debugging.md | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sdks/wasm/docs/runtime-debugging.md b/sdks/wasm/docs/runtime-debugging.md index 96b6ddd9667..88c7557f5c4 100644 --- a/sdks/wasm/docs/runtime-debugging.md +++ b/sdks/wasm/docs/runtime-debugging.md @@ -26,4 +26,13 @@ EM_ASM( - The --stack-trace-limit=1000 option to V8 can be used to avoid V8 truncating stack traces. - Emscripten supports clang's -fsanitize=address option, it can also decompile wasm images at runtime to create readable stacktraces for C code. - +- The numbers in stack traces such as: +``` +WebAssembly.instantiate:wasm-function[8003]:0x12b564 +``` +mean wasm function index/offset inside the wasm binary. +The wasm-objdump tool in the emscripten sdk can be used to find the +corresponding wasm code: +``` +12b551 func[8003] <mono_wasm_load_runtime>: +``` |