Getting Started Extending the VS Debugger

The documentation for all the pieces and enhancements made to the VS Debugger automation model over the years is spread throughout the MSDN web-site.  Here’s a list of start points, for each set of enhancements that were made, starting from Visual Studio 2003 through 2008 SP1: Original: http://msdn.microsoft.com/en-us/library/aa291845(VS.71).aspx VS2005: http://msdn.microsoft.com/en-us/library/envdte80.debugger2(VS.80).aspx VS2008: http://msdn.microsoft.com/en-us/library/envdte90.debugger3.aspx VS2008 SP1: http://msdn.microsoft.com/en-us/library/envdte90a.debugger4.aspx…

0

Need to write a new Debugging Engine for your favorite platform?

Jackson, recently posted a new sample for how to write a Visual Studio debug engine.  As Joc put it: “in our architecture, the debug engine is the part that does all of the communication with the debugging/diagnostic APIs for a given platform, and communicates those back to the UI through a common set of interfaces.  The current debugger ships debug…

0

Visual Studio Debugger FAQ

Introduction This FAQ can be used to narrow down the problems associated with debugging any type of solution using any version of Visual Studio from 7.0 to 2008.   Please be aware that this is very much a work-in progress.  Please continue to refer to it as it is updated.   Prerequisites ·         What steps…

1

Debugger Tips, Tricks and Tools #12

I’ve had loads of people ask me the question: “Is there any way to step into a function without having to bother stepping into all the properties that might have to be executed as parameters before getting to what I’m really interested in?” The standard answer for Visual Studio 2005 and Visual Studio 2008 has…

3

Why does Visual Studio require debugger symbol files to *exactly* match the binary files that they were built with?

Recently a coworker of mine lost the symbol file for one of his binaries.  Because he needed to debug that binary, getting those symbols back was of utmost importance since debugging without them is near impossible.  He decided to try and use a symbol file from a previous build whose sources exactly matched.  Much to his…

1

Debugger Tips, Tricks and Tools #11

More fun with labelling breakpoints Back in my first Debugger tips post I provided some macros that allow you to tag a set of breakpoints with a string so that they can easily be enabled or disabled from the command window.  Well, just for kicks, I decided to expand on that notion a bit and made…

1

Debugger Tips, Tricks and Tools #10

Create a one-step operation to attach to a process If you find your debugging session typically involves attaching to a specific process you can save yourself some time in VS 2005 by creating a macro to do it for you. Choose Tools->Macros->Record Temporary Macro Choose Tools->Attach to Process and choose the process you want to attach…

1

Debugger Tips, Tricks and Tools #9

Making native array viewing easier with Enhanced DataTips I’m back from vacation, and have a new found respect for people (mostly US wives/women, I presume) that slave all day over preparing a Thanksgiving meal and then cleaning it all up.  Yep, I did the whole turkey, potatoes, yams, corn, etc. thing this year for me and my kids.  By…

0

Debugger Tips, Tricks and Tools #8

Noisy breakpoints! Ok this feature has been around for a long time, but it’s really almost impossible to discover on your own.  Scott Nonnenberg asked me to remind him out to do this yesterday and I thought HEY good idea for a tip!  Here’s what you do: Open the Windows Control Panel If you are in Category View…

1