Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to assign a shortcut to "Step Into Specific" in Visual Studio 2012 C++?

I recently discovered the "Step into Specific" option while debugging C++ in Visual Studio (using VS2012) which is really helpful especially if there are many constructors, smart pointers, etc.

However, as I'm mostly debugging using the keyboard (F9, F10, F11, Shift-F11) I wonder whether it was possible to add this function to the keyboard repertoire somehow ?

Alternatively, as I mostly use the "step into specific" command on functions like

void doSomethingInterestingWith(sharedPtrToDb->getEltFromDb(EltId(atoi(key)))) 

I wonder whether it is possible to create a shortcut that just goes directly into the outer function (doSomethingInterestingWith())

like image 537
mr_T Avatar asked Sep 09 '16 08:09

mr_T


People also ask

How do I assign keyboard shortcuts in Visual Studio?

Customize a keyboard shortcutOn the menu bar, choose Tools > Options. Expand Environment, and then choose Keyboard.

Which shortcut key can be used to create a new class while designing the model?

For creating unit test class in MVC application, use test and press TAB twice. For creating Unit test method, use testm and press TAB twice.

What does F10 do in Visual Studio?

F10 -> Execute the next line of code but not follow execution through any function calls (Step Over). F11 -> Execute code one statement at a time, following execution into function calls (Step Into).


1 Answers

There is a Debug.StepIntoSpecific command with the default shortcut Shift+Alt+F11 which shows a context menu with functions that you can select using keyboard.

like image 134
Sergey Vlasov Avatar answered Sep 26 '22 07:09

Sergey Vlasov