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()
)
Customize a keyboard shortcutOn the menu bar, choose Tools > Options. Expand Environment, and then choose Keyboard.
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.
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).
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With