Exception Handling Functions for Debugging

原文链接:http://msdn.microsoft.com/en-us/library/windows/desktop/ms679330%28v=vs.85%29.aspx

本文链接:http://blog.csdn.net/wlsgzl/article/details/18629009

When an exception occurs in a process that is being debugged, the system notifies the debugger by passing the exception to it.当被调试进程发生异常时,系统通过传递异常来通知调试器。 This is known as first-chance notification.这就是所谓的首次机会通知。 The system then suspends all threads in the process being debugged.系统然后挂起被调试进程的所有线程。

If the debugger does not handle the exception, the system attempts to locate an appropriate exception handler.如果调试器没有处理这个异常,系统尝试定位一个合适的异常处理器。 If the system cannot locate an appropriate one, the system again notifies the debugger that an exception has occurred. 如果系统没有定位到一个合适的异常处理器,系统会再次通知调试器已经发生了一个异常。This is known as last-chance notification.这就是所谓的末次机会通知。 If the debugger does not handle the exception after the last-chance notification, the system terminates the process being debugged.如果调试器没有在末次机会通知后处理这个异常,系统会终止被调试的进程。

For more information, see Debugger Exception Handling.更多的信息参见Debugger Exception Handling。

你可能感兴趣的:(exception)