Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/sdks
diff options
context:
space:
mode:
authorZoltan Varga <vargaz@gmail.com>2020-05-27 05:12:57 +0300
committerGitHub <noreply@github.com>2020-05-27 05:12:57 +0300
commit14ff5bd29a8aaf05a1b249fc9944fee9d7fc3dc9 (patch)
treee4dc6830c57a8d8faf09afaf57d3fae4fabbbba9 /sdks
parent540e8d1d7b2f57d94549ccd68a483fff97169ad9 (diff)
[wasm] Add more runtime debugging docs. (#19850)
Diffstat (limited to 'sdks')
-rw-r--r--sdks/wasm/docs/runtime-debugging.md11
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>:
+```