debug-dumpslisted
Install: claude install-skill Nucs/Agentmaster
# Debugging crashes & dumps (no cdb/WinDbg)
The battle-tested loop for finding the root cause of an Agentmaster (or any native Windows-app) crash on a
box with **no Debugging Tools for Windows installed** — using the DIA SDK + DbgHelp that ship with VS 2022.
Born from a run of C++/WinRT XAML-Islands crashes (tooltip use-after-frees, deferred fail-faults,
fire_and_forget terminates) diagnosed entirely from dumps.
## 0. Prerequisites (one-time)
- **VS 2022** with the C++ workload (any edition) — provides `cl.exe`, `dbghelp.lib`, and the **DIA SDK**
(`<VS>\DIA SDK\include\dia2.h`) + `msdia140.dll`. No cdb/WinDbg needed.
- Build the tools once: `cmd /c .claude\skills\debug-dumps\scripts\build.bat` → the 6 analysis `.exe` + the
`makedump` fixture generator land in `scripts\`. `build.bat` auto-detects VS via `vswhere` (falls back to
Community) and finds the DIA SDK beside it. Re-run any time.
- **Git Bash note:** when passing Windows paths to these `.exe`, prefix the command with `MSYS_NO_PATHCONV=1`
and use `\\`-escaped absolute paths, or MSYS mangles them.
- **msdia140.dll path:** the DIA tools `NoRegCoCreate` it from a hardcoded VS-Community path
(`...\Common7\IDE\Automation\msdia140.dll`). On a non-Community edition, edit `kMsdia` in
`dumpourscan.cpp`/`dumpstack.cpp`/`diasym.cpp` and rebuild.
## 1. Find the crash
Two artifacts. Get both:
```bash
# (a) The WER Application Error event — module + exception code + fault offset + package + timestamp:
powershell -No