ATTACH_REASON
Applies to: Visual Studio Visual 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
Specifies the reason for the debug engine (DE) to attach to a program node.
Syntax
enum enum_ATTACH_REASON {
ATTACH_REASON_LAUNCH = 0x0001,
ATTACH_REASON_USER = 0x0002,
ATTACH_REASON_AUTO = 0x0003
};
typedef DWORD ATTACH_REASON;
public enum enum_ATTACH_REASON {
ATTACH_REASON_LAUNCH = 0x0001,
ATTACH_REASON_USER = 0x0002,
ATTACH_REASON_AUTO = 0x0003
};
Fields
ATTACH_REASON_AUTO
Attach because the process is currently in debug mode.
ATTACH_REASON_LAUNCH
Attach because the process has been launched.
ATTACH_REASON_USER
Attach because of a user request.
Remarks
These values are used as a parameter to the Attach and Attach methods.
Requirements
Header: msdbg.h
Namespace: Microsoft.VisualStudio.Debugger.Interop
Assembly: Microsoft.VisualStudio.Debugger.Interop.dll