rstackjs avatar

Rspack Debugging

When Rspack crashes with a segfault or hangs during builds, this gives you a structured way to capture what's actually happening under the hood using LLDB. It handles the annoying parts automatically: swapping in debug symbol packages, setting up non-interactive debugging sessions, and routing you to the right workflow based on whether you're dealing with HMR crashes, build hangs, or those maddeningly intermittent deadlocks. The coredump analysis guides are especially useful for bugs you can't reliably reproduce. Just remember to save your backtraces to the debug_artifacts folder before your session ends, and restore your production packages when you're done.

skills.sh installs
277
GitHub stars
98
last updated
Aug 21, 2026

Install

$ npx -y skills add rstackjs/agent-skills --skill rspack-debugging --agent claude-code

Installs into .claude/skills of the current project.

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:

Sponsors

Details

Repository
github.com/rstackjs/agent-skills
Categories
DevOps & CI/CD, AI & Agent Building, Debugging
First seen
Jun 3, 2026

More from rstackjs/agent-skills

All 12
1davila7 avatarfree-tool-strategydavila7/claude-code-templatesWhen the user wants to plan, evaluate, or build a free tool for marketing purposes — lead generation, SEO value, or brand awareness. Also use when the user ment276skills.sh installs
2cinience avataralicloud-compute-fc-agentruncinience/alicloud-skillsManage Function Compute AgentRun resources via OpenAPI (runtime, sandbox, model, memory, credentials). Use for creating runtimes/endpoints, querying status, and273skills.sh installs
3jeremylongshore avatarreadme-generatorjeremylongshore/claude-code-plugins-plus-skillsGenerate readme generator operations. Auto-activating skill for DevOps Basics. Triggers on: readme generator, readme generator Part of the DevOps Basics skill c272skills.sh installs
4jezweb avatardjango-cloud-sql-postgresjezweb/claude-skillsDeploy Django on Google App Engine Standard with Cloud SQL PostgreSQL. Covers Unix socket connections, Cloud SQL Auth Proxy for local dev, Gunicorn configuratio272skills.sh installs
5pproenca avatarios-tastepproenca/dot-skillsDesigns iOS 18+ SwiftUI experiences with real taste — starting from user goals, not pixels. Use this skill whenever the user asks you to build SwiftUI views, sc272skills.sh installs
6qodex-ai avatarautonomous-agent-gamingqodex-ai/ai-agent-skillsBuild autonomous game-playing agents using AI and reinforcement learning. Covers game environments, agent decision-making, strategy development, and performance272skills.sh installs