Skip breakpoints in Visual Studio 2022 by forcing VS to run to cursor

In Visual Studio 2022 instead of deleting or disabling breakpoints (or pressing continue a lot) when we don’t need them we’ll be able to force the skipping of breakpoints via the ‘Force Run to Cursor’ option. 

In the simple example below, I’ve right clicked on line 14 and set ‘Force Run to Cursor’ so the breakpoint on line 11 will be skipped…

… and if we want to map this ‘Force Run to Cursor’ functionality to a keyboard shortcut look for the Debug.ForceRunToCursor command…

Leave a Reply

Your email address will not be published.