Skip to content
rstackjs avatar

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

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/* via pnpm.overrides and restores them with --restore
  • Requires saving full thread backtrace all output to debug_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 -y

Installs 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.

  1. Install LLDB: You must install the LLDB debugger.

    • macOS: Run xcode-select --install
    • Linux: Install the lldb package (e.g., apt-get install lldb)
    • Detailed guide: references/lldb.md
  2. Replace Debug Packages: Production packages like @rspack/core have 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.cjs relative 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 12

Similar to Rspack Debugging

More Debugging