Search code examples
c#.netvisual-studiodebuggingbreakpoints

How can I find a method caller when stepping through C# in Visual Studio 2008?


If I set a breakpoint on a method, how can I see what called the method, when the breakpoint is hit in Visual Studio 2008?


Solution

  • Check the Call Stack window (from the menu: Debug > Windows > Call Stack). Double clicking each entry there will take you to the calling statement. You can also right click on it to enable/disable showing external code items and calls from other threads.