While debugging, I am currently at this (next) statement :-
system<System_Body>()->executeFracture(calculateFracture(data));
^^1 ^^2
How to step into executeFracture()
or calculateFracture()
directly and easily (without changing the code)?
Hotkey? Extension? Plugin?
F11
, I have to step into system<System_Body>()
first. executeFracture()
and press ctrl+F10
from there, but it is not convenient.MotKohn and TheUndeadFish advised using step into specific, thank!
Another similar thread (I just found later) tells that its hotkey is Shift+Alt+F11
.
The hotkey make the choices popup, nice.
The existing answer (TheUndeadFish's) requires me to move mouse to a correct choice on the popup.
(or press up/down to select choice)
I wish for a more convenient approach, e.g. :-
calculateFracture
, so the caret (blinking |) move to it.calculateFracture()
immediately.Begin code stepping by selecting F10 or F11. Doing so allows you to quickly find the entry point of your app. You can then continue to press step commands to navigate through the code. Run to a specific location or function, for example, by setting a breakpoint and starting your app.
F5 is used to start your project in debug mode and Ctrl-F5 is used to start your project without debug mode.
Click the Debug | Step Into menu item or press the F11 key to step into any property or method for debugging. You can then continue the line by line execution by pressing F10 or continue ...
Not a hotkey, but the closest thing I know of can be found on the right-click menu when your debugger is stopped on a line of code line that. You should be able to find an entry to "Step Into Specific" with a sub-menu giving the choice of all the functions from that line.
https://msdn.microsoft.com/library/7ad07721(v=vs.100).aspx
Shift+Alt+F11 is the default global shortcut for "Step Into Specific", which will bring up a context menu of all the methods you can step into from the current instruction.
Of course, you can change the shortcut via Tools->Options->Customize...->Keyboard dialog.
Otherwise, there is no feature that allows you to step into the specific method under the editor caret. Sounds like a nice idea that you should put up on uservoice for Visual Studio.
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