Share via


Termination and detaching

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

The following section describes normal termination.

Discussion

After the IDebugLoadCompleteEvent2 or IDebugEntryPointEvent2 interface continues, if there are no breakpoints, exceptions, run-time errors, or infinite loops in the application to be debugged, the program being debugged runs to completion. This process is normal termination.

You must send an IDebugProgramDestroyEvent2 to implement normal termination. Normal termination requires running the IDebugProgramDestroyEvent2::GetExitCode method.

See also