Skip to content

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
View on GitHub

Own this skill? Claim it

What it does

  • Covers GDB and LLDB sessions with Rust pretty-printers, panic triage, backtrace configuration, dbg!, tracing logging, and tokio-console for async code
  • Includes rust-gdb and rust-lldb wrapper usage, RUST_BACKTRACE levels, 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 -y

Installs 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

Similar to Rust Debugging

More Debugging