rust-debugging

Guide Android Rust crash debugging through tombstone analysis and addr2line symbolication.

58|4|Updated Mar 8, 2026
One-click install
npx skills add https://github.com/po4yka/RIPDPI --skill rust-debugging-po4yka
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-debugging
Source: https://github.com/po4yka/RIPDPI/tree/main/.claude/skills/rust-debugging
Command: npx skills add https://github.com/po4yka/RIPDPI --skill rust-debugging-po4yka

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps Android developers identify and fix crashes in Rust-native code by guiding tombstone interpretation, address symbolication, JNI-panic handling, and logging integration.

Core Features & Use Cases

  • On-device Rust crash analysis with tombstone decoding, logcat wiring, and addr2line symbolication.
  • JNI-panic safety guidance, panic hooks, and robust JNI boundary handling during debugging sessions.
  • Step-by-step workflows for symbolication, LLDB/GDB debugging, and tracing instrumentation across the ripdpi crates in Android.
  • Use Case: When a native crash occurs in the RIPDPI Android app, follow this skill to locate the failing source line and reproduce with debugging tools.

Quick Start

Attach the Android debugger to the running Rust process and symbolicate the crash tombstone with addr2line to identify the failing line.

Frequently Asked Questions about rust-debugging

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug a Rust native crash on Android using a tombstone?

Debug a Rust JNI panic on Android by configuring RUST_BACKTRACE for full stack traces and installing panic hooks to safely catch and handle exceptions across the JNI boundary during your LLDB debugging session.

Why does my Rust native library crash with no output in Android logcat?

Missing Rust crash output in Android logcat occurs when native logging is not properly wired; attach LLDB and configure RUST_BACKTRACE to capture native panic messages and backtraces during on-device debugging.

What is the best way to symbolicate a Rust backtrace from an Android tombstone?

The best way to symbolicate a Rust backtrace from an Android tombstone is using addr2line with your compiled cdylib binaries to resolve raw memory addresses into exact function names and source file lines.

Can I use LLDB to attach to a running Rust process on an Android device?

Yes, you can use LLDB to attach to a running Rust process on an Android device by following an explicit debugging workflow that connects the on-device cdylib process to the host debugger for live crash analysis.

Do I need addr2line to trace a Rust native crash in an Android app?

You need addr2line to trace a Rust native crash in an Android app because it translates raw memory addresses from tombstones or LLDB backtraces into readable Rust source file names and line numbers.

How do I handle JNI panics when debugging Rust code on Android?

Handle JNI panics when debugging Rust code on Android by setting up panic hooks and applying robust JNI boundary handling techniques to prevent native crashes from tearing down the Android application process.