Walkthrough3: Breakpoints and Stopping Events now available

I have uploaded another walkthrough for the new debug engine sample. This one explains breakpoints, breakpoint binding and stopping events in the sample engine. It is available along-side the other walkthroughs and the actual sample download at http://code.msdn.microsoft.com/debugenginesample


Comments (6)

Cancel reply

  1. enwang says:

    The sample and walkthroughs are very well written. I was able to create a custom debug engine prototype debugging scripting language. Without the sample and walkthroughs, it’ll be much harder.

    Thank you for the great work!

    Enzhou Wang (MSFT)

  2. ivanromanov says:

    I find your sample and tutorial very useful!

    Could you please clarify one thing.

    SampleEngine depends on Microsoft.VisualStudio.Debugger.Interop.dll assembly (supplied with MS Visual Studio SDK). How such DE may be distributed to those users of Visual Studio who don’t have VSIP/VSSDK?


  3. jacdavis says:


    I don’t think you need to redistribute that pia. It should be available in the GAC when Visual Studio is installed. The SDK only adds another copy to make it easy to add a reference to it in the project.


  4. ivanromanov says:


    I have a couple of questions:

    1) method IDebugThread2.GetThreadProperties


    are you missing a statement "propertiesArray[0] = props;"?

    2) method AD7PendingBreakpoint.GetDocumentContext (AD7.ImplAD7PendingBreakpoint.cs:64):

    why did you write

    "return new AD7DocumentContext(documentName, startPosition[0], startPosition[0], codeContext);" ?

    Why not "… startPosition[0], endPosition[0]…"?

    I saw that endPosition (returned by IDebugDocumentPosition2.GetRange()) looks weird sometimes, but I didn’t found good explanation of its meaning in the MSDN.

    Thank you!

  5. jacdavis says:


    Those are both bugs. Thanks for reporting them. I’ll get them fixed as soon as I can.


Skip to main content