Rspack Debugging
Rspack-specific LLDB debugging guide for native crashes, segfaults, deadlocks, and stuck builds with debug symbols.
- CCM score
- 56 of 100
- skills.sh installs
- 294
- GitHub stars
- 101
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers six scenarios: HMR crashes, build crashes, stuck-process attachment, dev and build coredump analysis, and async deadlocks
- Includes
scripts/setup_debug_deps.cjs, which swaps@rspack/*packages for@rspack-debug/*viapnpm.overridesand restores them with--restore - Requires saving full
thread backtrace alloutput todebug_artifacts/so backtraces persist after the session - Designed for Rspack users hitting "Segmentation fault" errors or builds that hang mid-progress
Install
$ npx -y skills add rstackjs/agent-skills --skill rspack-debugging -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Rspack debugging
Overview
This Skill guides you on how to capture the underlying crash state of Rspack (which is based on Rust). By using the LLDB debugger and Rspack packages with debug symbols, we can obtain detailed stack backtraces, which are crucial for pinpointing issues. The guides focus on non-interactive, automated debugging to easily capture backtraces.
Preparation
Before starting, please ensure your environment meets the requirements.
-
Install LLDB: You must install the LLDB debugger.
- macOS: Run
xcode-select --install - Linux: Install the
lldbpackage (e.g.,apt-get install lldb) - Detailed guide: references/lldb.md
- macOS: Run
-
Replace Debug Packages: Production packages like
@rspack/corehave debug symbols stripped. They must be replaced with the@rspack-debug/*series packages to see useful stack information.Automatic Replacement Script:
Resolve the bundled
scripts/setup_debug_deps.cjsrelative to the Skill root while keeping the working directory in the user's project, then run:
Details
- Repository
- github.com/rstackjs/agent-skills
- Categories
- Debugging, Frontend & UI Code
- First seen
- Jun 3, 2026
Questions
What does the rspack-debugging skill do?
It helps capture the underlying crash state of Rspack, which is based on Rust, when builds hit segmentation faults, deadlocks, or stuck progress. It uses the LLDB debugger with Rspack packages that include debug symbols to produce detailed stack backtraces for pinpointing issues.
How do I install the rspack-debugging skill?
Run npx -y skills add rstackjs/agent-skills --skill rspack-debugging -y in a project. Once installed, the agent can guide you through replacing production packages with debug builds and capturing backtraces with LLDB.
What do I need before using rspack-debugging?
You need the LLDB debugger installed, which is available through xcode-select --install on macOS or the lldb package on Linux. The skill also swaps @rspack/core and related packages for their @rspack-debug equivalents, so package.json and pnpm install are involved.
Which Rspack problems is rspack-debugging meant for?
It targets Segmentation fault errors during Rspack builds and builds whose progress gets stuck. Its guides cover crashes during HMR and builds, attaching to a stuck process, coredump analysis, and async deadlock identification.
More from rstackjs/agent-skills
All 12Similar to Rspack Debugging
More Debuggingrspack-tracingrstackjs/agent-skills303 installsDiagnostic toolkit for Rspack build traces that locates crashes, slow phases, and costly plugins or loaders.
core-dumpsmohitmishra786/low-level-dev-skills948 installsPractical crash triage for production core dumps: enabling collection, loading in GDB or LLDB, and resolving symbols.
debuggerzhaono1/agent-playbook759 installsSystematic debugging workflow that reproduces, isolates, and verifies fixes across JavaScript, Python, and Go.
debugging-wizardjeffallan/claude-skills5.7K installsSystematic, hypothesis-driven debugger that reproduces, isolates, and verifies fixes for bugs and crashes.
debugging-instrumentsdpearson2699/swift-ios-skills4.5K installsInteractive LLDB, Memory Graph, and Instruments triage for iOS crashes, retain cycles, hangs, and profiling.
zig-debuggingmohitmishra786/low-level-dev-skills617 installsPractical debugging guide for Zig programs covering GDB, LLDB, panic and error-trace reading, and VS Code setup.