Visual Studio Developer Center > Visual Studio Forums > Visual Studio Extensibility > Is it possible to add breakpoint-like functionality?
Ask a questionAsk a question
 

AnswerIs it possible to add breakpoint-like functionality?

  • Sunday, November 08, 2009 12:25 AMShanewho Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I would like to extend visual studio to add something similar to a breakpoint.  I want it to be similar to the "When Hit" functionality with a macro, but I have reasons not to want to use breakpoints.  I would like to have some way to call back into my addin code when execution hits a specific line in a file.  It this possible to do?

Answers

  • Monday, November 09, 2009 9:23 AMWesley YaoMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hello,

    I think VSX has no such a functionality to subscribe to the code execution, the only option I know is the DTE.Events.DebuggerEvents.OnEnterBreakMode.
    So the answer is "impossible", I'm sorry for that.

    Sincerely,
    Wesley
    Please mark the replies as answers if they help and unmark them if they provide no help. Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.

All Replies

  • Monday, November 09, 2009 9:23 AMWesley YaoMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hello,

    I think VSX has no such a functionality to subscribe to the code execution, the only option I know is the DTE.Events.DebuggerEvents.OnEnterBreakMode.
    So the answer is "impossible", I'm sorry for that.

    Sincerely,
    Wesley
    Please mark the replies as answers if they help and unmark them if they provide no help. Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.