Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to turn on break when the exception type is user unhandled?

During debugging a NULL Ref Exception I accidentally unchecked the box Break when this exception type is user-unhandled in the exception popUp. How can I turn this back on?

I've looked at debug-> exceptions but dont see null ref mentioned

like image 647
John Avatar asked Oct 19 '25 09:10

John


2 Answers

In the IDE, press CTRL+ALT+E.

Using the Search bar in the top right of the window that appears, search for NullReferenceException You will see:

enter image description here


Or, you can try "Restore defaults":

enter image description here


If you are having trouble testing that you're managing the right exception, try throwing an exception and interacting with the check box (off and on) like shown below. If ON then break here, if OFF then do not break:

enter image description here

Additionally refer to Managing Exceptions with the Debugger

like image 146
Brien Foss Avatar answered Oct 21 '25 23:10

Brien Foss


FYI... Ctrl+Alt+E is equivalent to Debug, Windows, Exception Settings.

like image 33
Eric Moon Avatar answered Oct 22 '25 00:10

Eric Moon



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!