1# Core Dumps
2
3You can also [browse this source code online][code] and clone the wasmtime
4repository to run the example locally.
5
6[code]: https://github.com/bytecodealliance/wasmtime/blob/main/examples/fib-debug/main.rs
7
8This examples shows how to configure capturing [core dumps] when a Wasm guest
9traps that can then be passed to external tools (like [`wasmgdb`]) for
10post-mortem analysis.
11
12[core dumps]: https://github.com/WebAssembly/tool-conventions/blob/main/Coredump.md
13[`wasmgdb`]: https://github.com/xtuc/wasm-coredump/blob/main/bin/wasmgdb/README.md
14
15## Host Source
16
17<!-- langtabs-start -->
18
19```rust
20{{#include ../examples/coredump.rs}}
21```
22
23<!-- langtabs-end -->
24