How can I get WinForms to stop silently ignoring unhandled exceptions?

后端 未结 4 547
我在风中等你
我在风中等你 2020-12-01 13:57

This is getting extremely irritating. Right now I have a winforms application, and things were not working right, but no exceptions were being thrown as far as I could tell

4条回答
  •  借酒劲吻你
    2020-12-01 14:33

    An easy fix is not to run under the debugger.

    The debugger is masking the exception for some reason. If you run your app normally (Ctrl+F5), you'll get the usual "Unhandled exception has occurred in your application... Continue/Quit?" dialog.

提交回复
热议问题