In Windbg, the sx command family is used to control exceptions to be handled.
To pass an exception directly to the application, use the sxd command, which disables the specific exception. (Actually disable the average ignoring of the first chance exception) As far as I know, you should use sxd for all specific exceptions, because sxd * means all exceptions that are not explicitly indicated explicitly.
Use the sx command to view available exceptions and current settings. And use sxd for everything you want to disable.
0:000> sx ct - Create thread - ignore et - Exit thread - ignore cpr - Create process - ignore <cut> av - Access violation - break - not handled 0:000> sxd av 0:000> sx ct - Create thread - ignore et - Exit thread - ignore <cut> av - Access violation - second-chance break - not handled
The result, in my opinion, is difficult to interpret; av (access violation) will no longer be handled by the debugger in any visible way.
The section “Exception and event control” in the help system explains the first chance and the concept of the second chance.
Kjell gunnar
source share