Rust Debugging
Practical guide to debugging Rust binaries with GDB or LLDB, panics, backtraces, and async tasks.
- CCM score
- 62 of 100
- skills.sh installs
- 676
- GitHub stars
- 303
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers GDB and LLDB sessions with Rust pretty-printers, panic triage, backtrace configuration,
dbg!,tracinglogging, and tokio-console for async code - Includes
rust-gdbandrust-lldbwrapper usage,RUST_BACKTRACElevels, and a panic-hook example that captures backtraces - Provides a panic-message lookup table mapping common messages such as index out of bounds and unwrap on None to likely causes
- Designed for developers debugging Rust systems programs, including release builds with separated debug symbols
Install
$ npx -y skills add mohitmishra786/low-level-dev-skills --skill rust-debugging -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Rust Debugging
Purpose
Guide agents through debugging Rust programs: GDB/LLDB with Rust pretty-printers, backtrace configuration, panic triage, async debugging with tokio-console, and #[no_std] debugging strategies.
Triggers
- "How do I use GDB/LLDB to debug a Rust binary?"
- "How do I get a full backtrace from a Rust panic?"
- "How do I debug async Rust / Tokio?"
- "Rust pretty-printers aren't working in GDB"
- "How do I debug a Rust panic in production?"
- "How do I use dbg! and tracing in Rust?"
Workflow
1. Build for debugging
# Debug build (default) — full debug info, no optimization
cargo build
# Release with debug info (for profiling real workloads)
cargo build --release --profile release-with-debug
# Or configure in Cargo.toml:
# [profile.release-with-debug]
# inherits = "release"
# debug = true
# Run directly
cargo run
cargo run -- arg1 arg2
2. GDB with Rust pretty-printers
# Use rust-gdb wrapper (sets up pretty-printers automatically)
rust-gdb target/debug/myapp
# Or set up manually in ~/.gdbinit:
# python
# import subprocess, sys
# ...
Common GDB session for Rust:
Details
- Repository
- github.com/mohitmishra786/low-level-dev-skills
- Categories
- Debugging, Rust
- First seen
- Jun 3, 2026
More from mohitmishra786/low-level-dev-skills
All 54- Cpp Modules669
- Hardware Counters666
- Debug Optimized Builds652
- Rustc Basics649
- Cpp Templates648
- Rust Cross642
- Wasm Emscripten628
- Zig Debugging617
- Zig Build System616
- Wasm Wasmtime599
- Zig Cross598
- Zig Cinterop586
- Cmake2K
- Static Analysis1.4K
- Gdb1.3K
- Llvm1K
- Sanitizers1K
- Core Dumps948
- Assembly X86947
- Linux Perf916
- Clang904
- Valgrind851
- Gcc842
- Cross Gcc837
Similar to Rust Debugging
More Debuggingzig-debuggingmohitmishra786/low-level-dev-skills617 installsPractical debugging guide for Zig programs covering GDB, LLDB, panic and error-trace reading, and VS Code setup.
core-dumpsmohitmishra786/low-level-dev-skills948 installsPractical crash triage for production core dumps: enabling collection, loading in GDB or LLDB, and resolving symbols.
rust-async-patternswshobson/agents22.9K installsProduction async Rust patterns for Tokio, covering tasks, channels, streams, and error handling.
golang-troubleshootingsamber/cc-skills-golang42.8K installsSystematic Go debugging methodology with pprof, Delve, race detection, and GODEBUG tracing for root-cause fixes.
debuggerzhaono1/agent-playbook759 installsSystematic debugging workflow that reproduces, isolates, and verifies fixes across JavaScript, Python, and Go.
rspack-debuggingrstackjs/agent-skills294 installsRspack-specific LLDB debugging guide for native crashes, segfaults, deadlocks, and stuck builds with debug symbols.