重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
rspack-debugging by rstackjs/agent-skills
npx skills add https://github.com/rstackjs/agent-skills --skill rspack-debugging本技能指导您如何捕获 Rspack(基于 Rust 构建)的底层崩溃状态。通过使用 LLDB 调试器和带有调试符号的 Rspack 包,我们可以获取详细的堆栈回溯信息,这对于定位问题至关重要。本指南侧重于非交互式、自动化的调试方法,以便轻松捕获堆栈回溯。
开始之前,请确保您的环境满足要求。
xcode-select --installlldb 包(例如 apt-get install lldb)@rspack/core 这样的生产包已剥离调试符号。必须将它们替换为 @rspack-debug/* 系列包才能看到有用的堆栈信息。自动替换脚本 :
node ${CLAUDE_PLUGIN_ROOT}/skills/debugging/scripts/setup_debug_deps.cjs
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
运行上述脚本将自动向 package.json 添加 pnpm.overrides 配置,将 Rspack 包指向其对应的调试版本。之后,请务必运行 pnpm install 以更新依赖项。
请根据您的具体场景,遵循相应的链接指南。
场景 : DevServer HMR 期间发生稳定崩溃/死锁。阅读指南: references/guide_a_hmr_crash.md
场景 : 构建期间发生稳定崩溃/死锁(或频繁发生的不稳定构建崩溃)。阅读指南: references/guide_b_build_crash.md
场景 : 构建期间发生不稳定死锁(随机出现)。阅读指南: references/guide_c_attach_to_stuck_process.md
场景 : DevServer HMR 期间发生不稳定崩溃(难以交互式捕获)。阅读指南: references/guide_d_coredump_analysis_dev.md
场景 : 构建期间发生不稳定崩溃。阅读指南: references/guide_e_coredump_analysis_build.md
场景 : 不稳定的异步死锁。主线程卡在 uv_run 中。阅读指南: references/guide_f_async_deadlock.md
给代理的关键指令 : 当您成功获取堆栈回溯或跟踪日志时,必须将其保存到用户项目目录下的本地文件中,以便在会话结束后得以保留。
debug_artifacts 的目录。thread backtrace all 的完整输出写入 debug_artifacts/backtrace_<timestamp>.txt。调试完成后,请恢复您的 package.json 以使用生产包:
node ${CLAUDE_PLUGIN_ROOT}/skills/debugging/scripts/setup_debug_deps.cjs --restore
pnpm install
每周安装次数
49
代码仓库
GitHub 星标数
42
首次出现
2026年1月24日
安全审计
安装于
codex43
opencode38
gemini-cli38
github-copilot38
amp37
kimi-cli37
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.
Before starting, please ensure your environment meets the requirements.
Install LLDB : You must install the LLDB debugger.
xcode-select --installlldb package (e.g., apt-get install lldb)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 :
node ${CLAUDE_PLUGIN_ROOT}/skills/debugging/scripts/setup_debug_deps.cjs
Running the above script will automatically add pnpm.overrides configuration to package.json, pointing Rspack packages to their corresponding Debug versions. Afterwards, please be sure to run pnpm install to update dependencies.
Identify your specific scenario and follow the corresponding linked guide.
Scenario : Stable Crash/Deadlock during DevServer HMR. Read Guide: references/guide_a_hmr_crash.md
Scenario : Stable Crash/Deadlock during Build (or Unstable Build Crash that is frequent enough). Read Guide: references/guide_b_build_crash.md
Scenario : Unstable Deadlock during Build (happens randomly). Read Guide: references/guide_c_attach_to_stuck_process.md
Scenario : Unstable Crash during DevServer HMR (hard to catch interactively). Read Guide: references/guide_d_coredump_analysis_dev.md
Scenario : Unstable Crash during Build. Read Guide: references/guide_e_coredump_analysis_build.md
Scenario : Unstable Async Deadlock. Main thread stuck in uv_run. Read Guide: references/guide_f_async_deadlock.md
Critical Instruction for Agents : When you successfully obtain a backtrace or a tracing log, you MUST save it to a local file in the user's project directory so it is preserved after the session.
debug_artifacts exists in the project root.thread backtrace all to debug_artifacts/backtrace_<timestamp>.txt.After debugging is complete, restore your package.json to use production packages:
node ${CLAUDE_PLUGIN_ROOT}/skills/debugging/scripts/setup_debug_deps.cjs --restore
pnpm install
Weekly Installs
49
Repository
GitHub Stars
42
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex43
opencode38
gemini-cli38
github-copilot38
amp37
kimi-cli37
GSAP 框架集成指南:Vue、Svelte 等框架中 GSAP 动画最佳实践
3,700 周安装