VS2008 Debugger does not break on unhandled exception

后端 未结 6 1414
伪装坚强ぢ
伪装坚强ぢ 2020-12-07 04:41

I\'m having an odd problem with my vs debugger. When running my program under the vs debugger, the debugger does not break on an unhandled exception. Instead control is re

6条回答
  •  半阙折子戏
    2020-12-07 05:06

    When I read the answer about having two check boxes in the "Exception..." dialog, I went back and opened the dialog again. I only had one column of check boxes -- for break on "Thrown".

    As it turns out, if you do not have "Enable Just My Code (Managed Only)" checked in the Debug options, the "User-Unhandled" column does not show in the "Exceptions" dialog.

    I selected the "Enable Just My Code" option and verified that the "User-unhandled" checkbox on the "Exceptions" dialog was selected for all of the exception categories.

    I was able to get unhandled exceptions to break into the debugger for one session. But when I came back the next day, the behavior was as before.

    Metro.

提交回复
热议问题