11

Is there any way of skipping the current line in the Visual Studio debugger using keyboard shortcuts?

The only way I was able to do it is using the yellow cursor on the left or "set next statement" which does not work at the end of a function.

scohe001
  • 15,110
  • 2
  • 31
  • 51
user4388177
  • 2,433
  • 3
  • 16
  • 30
  • possible duplicate of [Visual Studio Debugger skips over breakpoints](http://stackoverflow.com/questions/2026510/visual-studio-debugger-skips-over-breakpoints) – Ducaz035 Jul 17 '15 at 11:18
  • 3
    It's a completely different issue. If I step, it will not skip the End Sub at all. – user4388177 Jul 17 '15 at 11:34
  • Related post - [How to force debugger to skip a piece of code?](https://stackoverflow.com/q/15023996/465053) – RBT Feb 13 '21 at 14:11
  • @RBT the article tells you how to skip the debugger, I wanted to skip the execution – user4388177 Mar 10 '21 at 14:57
  • Is skipping the debugger and skipping the execution not the same thing? The idea is to jump from one line of code to another line of code without executing the lines in between. – RBT Mar 12 '21 at 02:11
  • No, skipping the debugger means that Visual Studio/whatever will not stop on that line during debugging, but the runtime will execute it anyway. – user4388177 Mar 13 '21 at 08:31

1 Answers1

5

The "Set Next Statement" (CTRL+SHIFT+F10) shortcut will work at the end of a function... but you need to use the mouse though as well.

Marc Wittmann
  • 2,286
  • 2
  • 28
  • 41