I seem to be gradually accumulating Windows debugging tricks and need somewhere to keep track of them. There's some small debugging tricks and tips and some longer articles:
- Tracing an out of memory crash
- Easy custom visualizers for Visual Studio
- Adding a custom auto expand visualizer to Visual Studio
- Dodging a deliberate Heisenbug
- Comparing 32-bit and 64-bit C# calculations
Useful Websites, Articles and Links
- Raymond Chen’s blog Old New Thing especially
- The Microsoft Advanced Windows Debugging and Troubleshooting blog
- Jim Griesmer’s Gooey Bugs blog
- John Robbin’s blog
- Tess Ferrandez blog “If broken it is, fix it you should”: lots of information on debugging .Net with WinDBG.
- Robert Kuster’s thematically grouped WinDBG command list - keep this on your desk if you use WinDBG.
- Debugging 32-bits apps on 64-bits machines in WinDBG
- Finding where an unmanaged exception was thrown.
- Steve Johnson’s SOSEX extension for debugging .net
Books You Should Have On Your Shelf
Advanced Windows Debugging by
Hewardt and Pravat and
Advanced .NET Debugging
by
Mario Hewardt are both excellent for the low level
details.
Debugging Microsoft .NET 2.0 Applications by
John Robbins.