Search code examples
c#visual-studio-2012breakpointsvisual-studio-debugging

In Visual Studio 2012/2013 is it possible to have breakpoints or methods listed automatically while debugging


I did some research on this before asking the question and since I might be asking it incorrectly, I might not have done the right searches here first.

What I am trying to accomplish is when I start to debug or run an application in Visual Studio, is to have the IDE show me what methods are executing when I do something in the GUI/application.

For instance if I click a button in the GUI labelled "Search", I want to see the chain of events/methods that execute for this process. This I am not sure of. I hope I have asked the question correctly. Thank you for your time.


Solution

  • Have a try with IntelliTrace.

    1. Make sure IntelliTrace is enabled and call information is selected; enter image description here
    2. Launch your GUI application, and perform what action you want;
    3. In IntelliTrace window, click Break All. If IntelliTrace window is not displayed, click Debug -> Windows -> IntelliTrace Event;
    4. Expand the event you are interested, for example, 'Clicked Search', and click Call View link; enter image description here
    5. You can see call stack you are interested. enter image description here