共用方式為


Control events

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

You must send events during the controlled execution of your program. All of the events are sent using the IDebugEvent2 interface and have attributes that require you to implement the IDebugEvent2::GetAttributes method.

Additional methods

Some events require implementation of additional methods, as follows:

See also