Starting to learn Windbg

DebuggingWindbg

Debugging Problem Overview


After being troubled by an issue that I simply did not have the knowledge to debug, I've just decided that I have to learn how to use Windbg. My only problem: I have no clue where to start :-( I'm not really a WinApi-Guy, having use languages that abstract the Windows Api away from me usually.

So I just wonder: What is the best souce (Book, Website) to learn Windbg for someone who knows programming but not much about the inner depths of Windows? (And yes, I do read oldnewthing every day :))

Debugging Solutions


Solution 1 - Debugging

There's a few excellent blogs out there that help to gain windbg proficiency on an everyday basis:


I, personally, just started using windbg for all my debugging tasks and soon enough there were very questions I could not answer and very few problems I could not solve. Powerful and exciting tool.

Solution 2 - Debugging

For a book, try

Advanced Windows Debugging (Addison-Wesley Microsoft Technology Series)

Advanced  Windows Debugging
(source: knowfree.net)

Also, for a great reference sheet, see

Common WinDbg Commands (Thematically Grouped) by Robert Kuster.

Solution 3 - Debugging

A great blog to check out is If broken it is, fix it you should. There's actually some posts on getting started in WinDbg.

Solution 4 - Debugging

  • Advanced Windows Debugging by Hewardt and Pravat (best for general Win32 stuff)
  • Debugging .Net 2.0 Applications by John Robbins (if you need SOS for .Net)
  • The NT debugging blog (quite low level but they've just posted a good set of links.

Solution 5 - Debugging

My first experience with a debugger (actually soft ICE) has been a ... well ... sort of crack. There are some guide on the net about how to use a debugger to search for events and bypass/change program behavious. Once you've mastered the basic debugger skills, you can take any simple application (or your own applications) and play with it.

(This is just one of the guides i was talking about: http://www.woodmann.com/krobar/other/patch36.txt )

Solution 6 - Debugging

Debugging .NEt Applications has a chapter on how to use WinDbg

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMichael StumView Question on Stackoverflow
Solution 1 - DebuggingdeemokView Answer on Stackoverflow
Solution 2 - DebuggingChrisView Answer on Stackoverflow
Solution 3 - DebuggingMladen MihajlovicView Answer on Stackoverflow
Solution 4 - DebuggingIan GView Answer on Stackoverflow
Solution 5 - DebuggingAxemanView Answer on Stackoverflow
Solution 6 - DebuggingBenoitView Answer on Stackoverflow