Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I navigate the call stack in Visual Studio using just the keyboard?

Tags:

My current solution is to hit AltD, W, C, which navigates via the menus to the call stack, and then I can use the arrows to navigate. But once I press Enter on a particular frame, I have to repeat again.

Is there a more fluid way to navigate the call stack with just my keyboard?

ReSharper oriented answers are OK for me if you have one!

like image 517
joshcomley Avatar asked Mar 08 '12 13:03

joshcomley


People also ask

How do I view call stack in Visual Studio?

To open the Call Stack window in Visual Studio, from the Debug menu, choose Windows>Call Stack. To set the local context to a particular row in the stack trace display, select and hold (or double click) the first column of the row.

What is the shortcut key combination for call stack?

In the Call Stack window, open the shortcut menu. Choose Show Call Stack on Code Map (Ctrl + Shift + `).

How do you read a call stack?

Call stack is set of lines, which is usually read from top to bottom - meaning moving from current locations to callers. The bottom line was executed first. The top line is executed last and it is the current routine.


2 Answers

I use the VS2010 default keyboard mapping scheme and by pressing Ctrl+Alt+C brings up the call stack window in which I can use the arrow keys to navigate.

The macro name is Debug.CallStack

like image 141
Roger Stewart Avatar answered Oct 16 '22 08:10

Roger Stewart


Call Stack view in Visual Studio can be brought up with Ctrl+Alt+C or Alt+7. That allows navigating the stack with and as well as performing "Switch To Frame" action with Enter⏎.

Unfortunately, switching to a frame moves focus to the editor window, so the above sequence of actions has to be done again if you want to switch to another frame.

like image 40
Paweł Bylica Avatar answered Oct 16 '22 09:10

Paweł Bylica