Often I see people debugging applications by hitting a
breakpoint early in their application, and then repeatedly using F10/F11 to
step through their code until they reach the actual location they really want
to investigate. In some cases they are carefully observing each statement
they step over along the way (in which case using F10/F11 makes sense).
Often, though, people are just trying to quickly advance to the line of code
they really care about – in which case using F10/F11 isn’t the best way to do
this.
Instead, you might want to take advantage of the “run to
cursor” feature that the debugger supports. Simply position your cursor
on the line in your code that you want to run the application to, and then press
the Ctrl + F10 keys together. This will run the application to that line
location and then break into the debugger – saving you from having to make
multiple F10/F11 keystrokes to get there. This works even if the line of
code you want to run to is in a separate method or class from the one you are
currently debugging.