-
Notifications
You must be signed in to change notification settings - Fork 82
Usage
Sven Scharmentke edited this page Oct 11, 2025
·
4 revisions
- Create
.vscode/mcp.jsonin your workspace - Enable MCP in Copilot settings
- Restart VS Code
See Configuration Guide for details.
- "Analyze the crash dump at C:\dumps\app.dmp"
- "List all crash dumps in C:\dumps"
- "Show me the call stack and explain the access violation"
- "Execute
!peband check environment variables" - "Run
.ecxrfollowed bykand explain the exception"
- "Connect to tcp:Port=5005,Server=192.168.0.100"
- "Show current thread state and check for deadlocks"
- "Check timing issues with
!runawayand!threads" - "Show all threads with
~*kand identify hangs"
Manual start:
python -m mcp_windbgOptions:
-
--cdb-path- Custom CDB path -
--symbols-path- Custom symbols -
--timeout 60- Timeout in seconds -
--verbose- Debug output
Works with Claude Desktop and any MCP-compatible client via stdio.
- "List all crash dumps in C:\Dumps"
- "Analyze dump C:\Dumps\app_crash_001.dmp"
- "Show stack trace and examine top 3 frames"
- "Check heap state around crashing address"
- "Connect to tcp:Port=5005,Server=192.168.0.100"
- "Show current state - registers, stack, threads"
- "List all threads, identify suspicious ones"
- "Examine heap for corruption patterns"
- Configure symbols for meaningful analysis
- Set appropriate timeouts for complex operations
- Close sessions when done to free resources
- Use secure connections for remote debugging
| Issue | Solution |
|---|---|
| Tools not appearing | Verify MCP enabled, restart VS Code |
| CDB not found | Check installation, set --cdb-path
|
| Symbol loading fails | Verify symbol path |
| Timeouts | Increase --timeout
|
Next: Tools Reference | Troubleshooting