Skip to content

Debugging Tremor

This is a short canned synopsis of debugging tremor.


We use rust-lldb, to drive breakpoint debugging in tremor.

Alternately, rust integration with IntelliJ CLION also offers interactive breakpoint debugging in an IDE environment.

Setup on Mac OS X

rust-lldb ships with rust so no added tooling is required.

Preparing tremor for debugging

$ rust-lldb target/debug/tremor
(lldb) command script import "/Users/dennis/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/etc/"
(lldb) type summary add --no-value --python-function lldb_rust_formatters.print_val -x ".*" --category Rust
(lldb) type category enable Rust
(lldb) target create "target/debug/tremor"
Current executable set to 'target/debug/tremor' (x86_64).

Run tremor under the debugger

(lldb) run
(lldb) br set -n malloc_error_break
(lldb) run

Take a backtrace ( stacktrace ) upon hitting a breakpoint

(lldb) bt

List breakpoints

(lldb) br l

Quit lldb

(lldb) quit


For a more detailed synopsis check out lldb project documentation or the lldb cheatsheet.