AI 輔助 WinDbg / Dump 分析工具 - 讓 Production 除錯變簡單
WinDbg Assist 是一款結合 Azure OpenAI 與 WinDbg (cdb.exe) 的自動化診斷工具。它能自主執行連鎖指令,解讀複雜的記憶體 Dump,並產出易於理解的技術報告。
- AI 自主診斷 — 輸入問題(如「為什麼發生 Access Violation?」),AI 會自動執行
!analyze -v,!pe,!clrstack等指令進行連鎖推理 - 診斷歷程追蹤 — 完整記錄 AI 的思考過程與每一步驟的輸出,方便回溯驗證
- 傳統工具集 — 提供指令助手、輸出解讀與 Stack Trace 分析等輔助功能
- .NET 專精 — 優化的 SOS 載入邏輯,完美支援 .NET 10 的託管例外診斷
- Windows SDK (WinDbg) — 需要
cdb.exe,預設路徑:C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\cdb.exe - Sysinternals ProcDump — 官方下載
- dotnet-sos — 執行
dotnet tool install --global dotnet-sos && dotnet-sos install - .NET 10 SDK
Edit appsettings.json:
{
"AzureOpenAI": {
"Endpoint": "https://your-resource.openai.azure.com/",
"ApiKey": "your-api-key",
"DeploymentName": "gpt-4o"
},
"Debugger": {
"CdbPath": "C:\\Program Files (x86)\\Windows Kits\\10\\Debuggers\\x64\\cdb.exe",
"ProcdumpPath": "C:\\Tools\\procdump64.exe"
}
}dotnet run- Open http://localhost:5187 in your browser
- Enter the AI Diagnosis Center
- Click ⚙️ to set your Dump file path
- Describe your issue and start analysis
MIT License
