[doc] Add LLDB tips and tricks
This commit is contained in:
@@ -22,3 +22,17 @@ Wasmtime:
|
||||
```sh
|
||||
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
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user