Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio debug, jump to end of method, or to calling method

I fairly often get to a state in VS (C#) debug breakpoint or exception where I want to exit out of several levels of method to a caller a few levels up the stack. I can then patch up/retry/etc.

In simple cases I can [1] find the end of the current method, [2] set next statement, and [3] step out. Then repeat 1/2/3 working my way up the calling stack till I get where I want to be. However, this is a decided pain ....

Can anyone suggest any automation to help this? In order of preference ....

  1. jump all the way out to where I want to be in one go
  2. combine 1/2/3 in a single shortcut I can quickly repeat
  3. just automate step 1 (steps 2 and 3 are easy with standard shortcuts).

(I've tried searching, but all the terms I can think of are so generic that I haven't got any useful answers).

like image 761
Stephen Todd Avatar asked Feb 22 '23 19:02

Stephen Todd


1 Answers

Shift-F11 steps out of current method.

like image 93
Kent Avatar answered Feb 24 '23 08:02

Kent