Skip to main content
Temporary-breakpoint-–-New-feature-in-Visual-Studio-2022

Temporary breakpoint – New feature in Visual Studio 2022

Breakpoints are great help for the developers to debug the code in Visual Studio. Sometimes while debugging an interconnected call, we as developers tend to put breakpoints in every class to find out if a particular code is hit or not. And once our problem is solved, we forget to remove those breakpoints. So, next time while debugging, those breakpoints may hit again, and that is annoying as now you don’t want them to hit. To help overcome such situation in better way here is, Temporary Breakpoints – New feature in Visual Studio 2022.

Developers can fix the above problem via deleting the breakpoints from the breakpoint window. However, Visual Studio 2022 comes with a feature called Temporary Breakpoints (Once hit, it’s gone).  A temporary breakpoint is time saver and helpful in situation when you just want to check some methods are getting called in the code flow.

To set temporary breakpoint, right click and select “Insert Temporary Breakpoint”

Temporary-breakpoint-–-New-feature-in-Visual-Studio-2022

You would also find that it has a different icon as well.

You can also set temporary breakpoint from the Breakpoint Setting Window > Select “Remove breakpoint once hit“.

Temporary breakpoint – New feature in Visual Studio 2022

Thank you for reading. Keep visiting this blog and share this in your network. Please put your thoughts and feedback in the comments section.

PS: If you found this content valuable and want to return the favour, then Buy Me A Coffee

6 thoughts to “Temporary breakpoint – New feature in Visual Studio 2022”

Leave a Reply

Your email address will not be published. Required fields are marked *