-1

In visual Studio, I have unchecked all the Exceptions in "Exception Settings"

Image of Exception Settings

"Enable Just My Code" is checked in Debugging General Options

Image of Enable Just My Code

Still some Exceptions get thrown
EXCEPTION DETAILS

There is an option "Break when this exception type is user-unhandeled" and it is "checked"

Image of Exception Which Comes

The Exception was originally thrown at the call stack

[External Code]

I don't want the debugging to stop even though the exceptions come (for the time being), so I unchecked the box of "Break when this exception type is user-unhandeled". But after some hours some other user unhandeled exceptions comes. Are there some settings which can be changed so that the exceptions dont need to be unchecked manually.

What settings are being missed that the "Break when this exception type is user-unhandeled" is "checked".

Uwe Keim
  • 39,551
  • 56
  • 175
  • 291
Riya
  • 11
  • 2
  • Please, I have spent so much time figuring out how this issue can be resolved. If you want to dislike atleast tell the reason – Riya Nov 22 '21 at 11:40
  • 2
    Why don't you put try/catch then if you don't want the debugging to stop? – st_stefanov Nov 22 '21 at 11:59
  • I tried adding try catch but even after that the exception comes. https://stackoverflow.com/questions/1998566/unhandled-exception-in-try-catch – Riya Nov 22 '21 at 13:35
  • You need this.[Simply click the Add button. Change Type to "Common Language Runtime Exceptions". Type the full name of the exception type in the Name box.](https://stackoverflow.com/a/34618762/16764901). Type in all the errors you find, and it won't be triggered the second time. – Jiale Xue - MSFT Nov 23 '21 at 07:20
  • Thankyou very much @Jiale Xue – Riya Nov 23 '21 at 09:08
  • @Riya Does it work? Or it solves your problem? – Jiale Xue - MSFT Nov 23 '21 at 09:18

1 Answers1

0

In the Image you haven't unchecked the box for Break when this exception type is thrown Uncheck that box also to get over with it.

enter image description here

Arun_Raja1
  • 207
  • 1
  • 1
  • Thankyou for the reply. I took the screenshot before uncheking the box. In the question I did mention about it "I don't want the debugging to stop even though the exceptions come (for the time being), so I unchecked the box of "Break when this exception type is user-unhandeled". Even after that some other exception gets thrown after hours of the job running and I again have to uncheck it, so I need to spend a lot of time monitoring as I can't let the job stop as data will be lost. So I was asking if some options can be changed so that this manual effort can be reduced – Riya Nov 22 '21 at 13:28
  • Is there a way that I don't have to wait for the exception to occur and can set it to unchecked in advance – Riya Nov 22 '21 at 13:37