Loading user information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading user information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Defrag Tools #96 - Writing a Debugger Extension Part 1

22 minutes, 46 seconds


Right click “Save as…”

In this episode of Defrag Tools, Andrew Richards and Chad Beeder start a new series on writing a Debugger Extension for the Debugging Tools for Windows. The series is based on a 3 part MSDN Magazine series that Andrew wrote back in early 2011.

Writing a Debugging Tools for Windows Extension - Part 1 - March 2011
Writing a Debugging Tools for Windows Extension - Part 2 - May 2011
Writing a Debugging Tools for Windows Extension - Part 3 - June 2011

[00:00] - Writing a Debugger Extension
[01:30] - Win32 Project in Visual Studio 2013
[02:53] - DbgExt.cpp - CPP file
[06:37] - DbgExt.h - Header file
[07:08] - DbgEng required exports
[08:10] - MyExt.def - DEF file
[10:05] - #include <DbgEng.h> location
[11:50] - Additional Include Directories
[12:39] - (x86) Debugger Command: c:\debuggers_x86\windbg.exe
[13:05] - (x86) Command Arguments: -a "$(TargetPath)" c:\windows\syswow64\notepad.exe
[14:47] - MyExt.rc - RC file
[16:27] - Configuration Manager - Add x64
[18:20] - Make a folder for each platform: $(SolutionDir)$(Platform)\$(Configuration)\
[19:38] - (x64) Debugger Command: c:\debuggers\windbg.exe
[19:38] - (x64) Command Arguments: -a "$(TargetPath)" c:\windows\system32\notepad.exe
[20:55] - Run x64
[21:33] - No commands yet - .extmatch /e MyExt.dll
[22:17] - Next week - Hello World!
[22:17] - Email us your issues at defragtools@microsoft.com



Follow the discussion

  • Oops, something didn't work.

    Getting subscription
    Subscribe to this conversation
  • Excellent. I used the MSDN articles a couple of years ago to create an extension that steps a method similar to tt and wt for .NET and reports the VARs pushed to methods and any deltas to objects.

  • When you mess up the tabs (like in 9:23) you can double click the header while holding control key and Visual Studio will dock this window in the original position.

Remove this comment

Remove this thread


Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.