/odin-native:rust-debuggingfrom ODIN Native
Debugs Rust binaries with GDB/LLDB, enabling pretty-printers, interpreting panics and backtraces, debugging async with tokio-console, or stepping through no_std code.
Ships in ODIN Native. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Field | Bound contract |
|---|---|
| Trigger | Debugging a Rust binary, getting backtraces, setting breakpoints, inspecting variables, debugging async tasks, or triaging panics. |
| Authority | Reversible local. Adds and removes temporary debug instrumentation in local source files and Cargo.toml, runs local debuggers and builds, and writes build artifacts to target/; rollback reverts source and configuration edits and removes build artifacts. No remote mutation. |
| Side effect | Local source edits for dbg!, tracing, console-subscriber, and RUST_BACKTRACE settings; local debug builds; debugger transcripts. |
| Done | The fault is located or the question is answered with a backtrace, breakpoint state, variable value, or async task trace. |
rust-gdb, rust-lldb, or tokio-console.cargo build for a debug build, or add a release-with-debug profile in Cargo.toml for release. For separate debug symbols on Linux/ELF, build release, then objcopy --only-keep-debug, strip --strip-debug, and objcopy --add-gnu-debuglink. Done when: the binary has symbols the chosen debugger can read.rust-gdb <binary> or rust-lldb <binary> for automatic Rust pretty-printers. For manual setup, source gdb_lookup.py and lldb_lookup.py from the rustc --print sysroot path. Done when: the debugger starts and String, Vec, and Option values render as Rust types.break myapp::module::function_name, run <args>, next, step, continue. In LLDB: b myapp::module::function_name, r <args>, n, s, c. Use break rust_panic to stop on panic. Done when: execution stops at the expected location or reproduces the fault.p my_vec, info locals, bt in GDB; p my_vec, frame variable, thread backtrace in LLDB. Done when: the variable or call stack explains the symptom.RUST_BACKTRACE=1 or RUST_BACKTRACE=full, or call std::backtrace::Backtrace::force_capture() in a custom panic hook. Done when: a backtrace is produced and identifies the panic site.panic = "abort" to abort on panic; core-dump capture depends on OS and ulimits. Done when: the root cause is identified and a fix is stated.tracing and tracing-subscriber to Cargo.toml, initialize a subscriber in main, and instrument functions with #[instrument]. Remove after use. Done when: logs show the execution path around the fault.console-subscriber and enable the tokio/tracing feature, run the program, then run tokio-console. Inspect task states, waker activity, blocked tasks, and poll durations. Done when: the async bottleneck or deadlock is visible.#[no_std] binaries. Connect with OpenOCD and rust-gdb over a target remote, or use probe-run --chip <chip> target/<triple>/debug/<binary>. Verify the probe connection and target power. Done when: the target halts at a breakpoint or outputs probe logs.| Failure class | Behavior |
|---|---|
| Pretty-printers not loading | Use rust-gdb/rust-lldb or manually source the sysroot scripts. |
| No debug symbols | Rebuild with debug = true or a release-with-debug profile. |
| Backtrace is incomplete | Set RUST_BACKTRACE=full or increase the backtrace limit. |
| Async task not visible | Confirm console_subscriber::init() is called and the tokio tracing feature is enabled. |
| Embedded probe not found | Check the probe connection, OpenOCD config, and target power. |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub outlinedriven/odin-claude-plugin --plugin odin-native138 skills in this plugin
/abi-and-calling-conventionsUse when explaining System V AMD64, ARM AAPCS, RISC-V psABI, stack frames, variadic calls, or FFI register rules. Not for the Rust FFI binding layer: use rust-ffi./adc-dac-baremetalUse when configuring ADC sampling time, DMA-driven ADC, calibration, or DAC channel setup on bare-metal MCUs. Not for the DMA stream itself: use dma-baremetal./af-xdpUse when creating AF_XDP sockets, configuring UMEM and XSK rings, writing an XDP redirect program, or choosing copy versus zero-copy mode. Not for full kernel bypass: use dpdk.Other plugins' skills for the same job