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”
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“.
Thank you for reading. Keep visiting this blog and share this in your network. Please put your thoughts and feedback in the comments section.
Welcome back! Where have you been?
Thank mate.. Just caught up with other things and also became lazy while it comes to blogging… But now geared up again.. How have you been?