Log in

View Full Version : LINK: Toby Opferman's Debug Tutorials


ZaiRoN
March 31st, 2004, 03:44
Debug Tutorial Part 1: Begining Debugging Using CDB and NTSD: http://www.codeproject.com/debug/cdbntsd.asp
"This tutorial is merely an introduction to debugging. This would be considered "tutorial #1" and I will write more add ons if the feedback is good. There are a lot of complex debugging techiques and issues that it's hard to know where to start. This tutorial attempts to start at the beginning and get you acquanted with debugging. I hope to expose novices and intermediate level programmers to the world of advanced debugging. "Advanced" debugging, basically without recompiling, without doing "message box or printf debugging".

Debug Tutorial Part 2: The Stack: http://www.codeproject.com/debug/cdbntsd2.asp
"In this article, I will investigate the stack and how it plays an integral part in debugging. Anytime you ask the question "What do you do when your program traps?" the most common answer is "Get a stack trace". This is definately true, it's probably the very first thing you should do anytime you investigate a crash dump."

Debug Tutorial Part 3: The Heap: http://www.codeproject.com/debug/cdbntsd3.asp
"In the previous installment of this debug series we learned about the stack. The stack is a temporary storage location for local variables, parameters, return addresses, and just about anything the compiler wants to use it for. In this installment of the debug series, we will learn about the heap in usermode."

Debug Tutorial Part 4: Writing WINDBG Extensions: http://www.codeproject.com/debug/cdbntsd4.asp
"Welcome to the fourth installment of this debugging series. In this installment we will be getting a bit away from actual debugging for a bit and dive into creating helpful debugging aids."

Well, nice readings to all ;-)

ZaiRoN

ZaiRoN
August 11th, 2004, 05:22
3 more tutorials added.

Debug Tutorial Part 5: Handle Leaks: http://www.codeproject.com/debug/cdbntsd5.asp
" In this article, we will go over handles in Windows, what they are and how to debug leaks. The intent of these articles is not to regurgitate the WinDbg/NTSD help files but rather introduce real problems, what they are and how to solve them using the debuggers."

Debug Tutorial Part 6: Navigating The Kernel Debugger: http://www.codeproject.com/useritems/cdbntsd6.asp
" In this tutorial we will be covering a few of the basic features of the kernel debugger and get used to using it. I obviously can't cover everything so only select topics will be covered to just get used to the debugger. Hopefully you will find this article useful in your debugging adventures."

Debug Tutorial Part 7: Locks and Synchronization Objects: http://www.codeproject.com/useritems/cdbntsd7.asp
" In this section we will learn about locks and synchronization objects in Windows. In this tutorial we will do something a little different, we will be using both the Usermode debugger and the Kernel mode debugger since I have given the introduction to both debuggers already. This way, we get the best of both worlds."

Regards,
ZaiRoN

SHaG
August 18th, 2004, 17:10
Very useful ZaiRoN. Thanks!

homersux
September 27th, 2004, 20:01
bump this, this should be stickied but there are too many good stuff on this forum,

Kayaker
September 27th, 2004, 20:26
Maybe we should create a forum/page with sticky links to some of the best of the best references that are posted here? Before, as you say, they end up in the electronic ether...

Innocent
September 28th, 2004, 02:43
Sounds like a good idea to me.

JMI
September 28th, 2004, 03:34
Or just download the Archive and have it all.

Regards,