DEV Community

Sardar Mudassar Ali Khan
Sardar Mudassar Ali Khan

Posted on

How to force the debugger to skip over a method and anything it calls after Stepping In

In Visual Studio, when debugging, you can skip over a method and anything it calls after using the "Step Into" (F11) command. If you want to skip over a particular method during debugging, you can use a technique called "Step Out" (Shift + F11).

Here's how it works:

  1. Set a Breakpoint: Place a breakpoint before the method you want to skip over.

  2. Start Debugging: Run your code in debug mode.

  3. Reach the Breakpoint: When the debugger hits the breakpoint before the method you wish to skip, you'll see the code paused at that point.

  4. Use Step Out: Instead of stepping into the method using "Step Into" (F11), use "Step Out" (Shift + F11). This command will execute the current method completely and stop at the line of code following the method call.

This technique allows you to skip over the current method and anything it calls while still proceeding with the debugging process.

Top comments (0)