With Just-in-time debugging, you can run a program outside Visual C++. When an application error occurs, it calls the Visual C++ debugger.
To enable Just-in-time debugging
Note If you are running Windows NT, you must have administrator privileges to set the Just-in-time debugging option.