Temporary breakpoints available in Visual Studio 2022

Temporary breakpoints are available in Visual Studio 2022.

Temporary breakpoints are really useful if we just want to confirm a particular breakpoint is being hit at least once and afterwards don’t want to have to explicitly remove or disable it.

We can insert them by right clicking on a line and selecting ‘Insert Temporary Breakpoint‘ from the Breakpoint menu item…

We can also create a temporary breakpoint in Visual Studio by right clicking on an existing normal breakpoint and selecting either ‘Conditions…’ or ‘Actions…’ and then checking the ‘Remove breakpoint once hit‘ checkbox on the ‘Breakpoint Settings’ popup dialogue as shown below…

Leave a Reply

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