How to analyze a Windows crash dump with AI assistance
何时使用: You have a .dmp file from a crash and need to understand what happened.
前置条件
- Windows with Debugging Tools/WinDbg — Install from Microsoft Store or Windows SDK
- mcp-windbg installed — pip install mcp-windbg
步骤
-
Open the dumpOpen the crash dump at C:\dumps\app_crash.dmp. Run !analyze -v and explain what caused the crash.✓ 已复制→ Detailed crash analysis with exception type, faulting module, and call stack
-
Investigate the call stackShow me the full call stack of the faulting thread. What was the application doing when it crashed?✓ 已复制→ Annotated call stack with function descriptions
-
Check for patternsRun !locks and !heap -s. Is there a deadlock or heap corruption?✓ 已复制→ Lock/heap analysis results with interpretation
结果: Root cause of the crash identified with a clear explanation.
注意事项
- Missing symbol files — Set up a symbol path: .sympath SRV*c:\symbols*https://msdl.microsoft.com/download/symbols