Debug code with force run to cursor

Sachin Thakur

Have you ever had an experience when breakpoints in your application cause some disruption in your debugging, because you may need to test your updated code or focus on another area that does not need those break conditions? Starting Visual Studio 2022 Preview 2, you can use “Force Run To Cursor”, for these scenarios. It is like “Run To Cursor,” but you can keep your breakpoints and the debugger will skip over them until it reaches the line of code with the cursor. It will also skip any of the first-chance exceptions break conditions that may occur.