Visual Studio 2015 break on unhandled exceptions not working

前端 未结 12 1854
别那么骄傲
别那么骄傲 2020-11-30 23:36

Visual studio used to have a specific checkbox to \"Break on Un-handled exception\". In 2015 this has been removed (or moved somewhere I cannot find it). So now my convert

12条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-01 00:01

    It's all a bit confusing, and in my opinion not as good as the old exceptions dialog, but anyway.

    If an exception is in the list and ticked then the debugger will break whenever the exception is thrown.

    If an exception is unticked or not in the list then the debugger will only break when that exception type is user unhandled.

    For example, in the screenshot below, the debugger will break whenever a System.AccessViolationException is thrown, but for all the other exceptions it will only break if the exception was user unhandled.

提交回复
热议问题