[doc] Add LLDB tips and tricks

This commit is contained in:
Andrew Brown
2021-07-09 13:18:16 -07:00
parent d8e813204e
commit a83497e0b0

View File

@@ -22,3 +22,17 @@ Wasmtime:
```sh ```sh
gdb --args wasmtime run -g foo.wasm gdb --args wasmtime run -g foo.wasm
``` ```
If you run into trouble, the following discussions might help:
- On MacOS with LLDB you may need to run: `settings set
plugin.jit-loader.gdb.enable on`
([#1953](https://github.com/bytecodealliance/wasmtime/issues/1953))
- With LLDB, call `__vmctx.set()` to set the current context before calling any
dereference operators
([#1482](https://github.com/bytecodealliance/wasmtime/issues/1482)):
```sh
(lldb) p __vmctx->set()
(lldb) p *foo
```