|
2 | 2 | title: "DEBUG_REASON | Microsoft Docs"
|
3 | 3 | ms.date: "11/04/2016"
|
4 | 4 | ms.topic: "conceptual"
|
5 |
| -f1_keywords: |
| 5 | +f1_keywords: |
6 | 6 | - "DEBUG_REASON"
|
7 |
| -helpviewer_keywords: |
| 7 | +helpviewer_keywords: |
8 | 8 | - "DEBUG_REASON enumeration"
|
9 | 9 | ms.assetid: ad2ee898-8648-4671-9078-d32873862346
|
10 | 10 | author: "gregvanl"
|
11 | 11 | ms.author: "gregvanl"
|
12 | 12 | manager: jillfra
|
13 |
| -ms.workload: |
| 13 | +ms.workload: |
14 | 14 | - "vssdk"
|
15 | 15 | ---
|
16 | 16 | # DEBUG_REASON
|
17 |
| -Specifies why the process was launched for debugging. |
18 |
| - |
19 |
| -## Syntax |
20 |
| - |
21 |
| -```cpp |
22 |
| -enum enum_DEBUG_REASON { |
23 |
| - DEBUG_REASON_ERROR = 0, |
24 |
| - DEBUG_REASON_USER_LAUNCHED = 1, |
25 |
| - DEBUG_REASON_USER_ATTACHED = 2, |
26 |
| - DEBUG_REASON_AUTO_ATTACHED = 3, |
27 |
| - DEBUG_REASON_CAUSALITY = 4 |
28 |
| -}; |
29 |
| -typedef DWORD DEBUG_REASON; |
30 |
| -``` |
31 |
| - |
32 |
| -```csharp |
33 |
| -public enum enum_DEBUG_REASON { |
34 |
| - DEBUG_REASON_ERROR = 0, |
35 |
| - DEBUG_REASON_USER_LAUNCHED = 1, |
36 |
| - DEBUG_REASON_USER_ATTACHED = 2, |
37 |
| - DEBUG_REASON_AUTO_ATTACHED = 3, |
38 |
| - DEBUG_REASON_CAUSALITY = 4 |
39 |
| -}; |
40 |
| -``` |
41 |
| - |
42 |
| -#### Parameters |
43 |
| - DEBUG_REASON_ERROR |
44 |
| - A non-specific error occurred (this is used as a default condition when none of the other reasons fit). |
45 |
| - |
46 |
| - DEBUG_REASON_USER_LAUNCHED |
47 |
| - The process was launched at the user's request. |
48 |
| - |
49 |
| - DEBUG_REASON_USER_ATTACHED |
50 |
| - The already-running process was attached to by the user. |
51 |
| - |
52 |
| - DEBUG_REASON_AUTO_ATTACHED |
53 |
| - The process was automatically attached to when it was launched. |
54 |
| - |
55 |
| - DEBUG_REASON_CAUSALITY |
56 |
| - The process was launched due to a *Just-In-Time* (JIT) debugging event. |
57 |
| - |
58 |
| -## Remarks |
59 |
| - Returned from the [GetDebugReason](../../../extensibility/debugger/reference/idebugprocess3-getdebugreason.md) method. |
60 |
| - |
61 |
| -## Requirements |
62 |
| - Header: msdbg.h |
63 |
| - |
64 |
| - Namespace: Microsoft.VisualStudio.Debugger.Interop |
65 |
| - |
66 |
| - Assembly: Microsoft.VisualStudio.Debugger.Interop.dll |
67 |
| - |
68 |
| -## See Also |
69 |
| - [Enumerations](../../../extensibility/debugger/reference/enumerations-visual-studio-debugging.md) |
70 |
| - [GetDebugReason](../../../extensibility/debugger/reference/idebugprocess3-getdebugreason.md) |
| 17 | +Specifies why the process was launched for debugging. |
| 18 | + |
| 19 | +## Syntax |
| 20 | + |
| 21 | +```cpp |
| 22 | +enum enum_DEBUG_REASON { |
| 23 | + DEBUG_REASON_ERROR = 0, |
| 24 | + DEBUG_REASON_USER_LAUNCHED = 1, |
| 25 | + DEBUG_REASON_USER_ATTACHED = 2, |
| 26 | + DEBUG_REASON_AUTO_ATTACHED = 3, |
| 27 | + DEBUG_REASON_CAUSALITY = 4 |
| 28 | +}; |
| 29 | +typedef DWORD DEBUG_REASON; |
| 30 | +``` |
| 31 | + |
| 32 | +```csharp |
| 33 | +public enum enum_DEBUG_REASON { |
| 34 | + DEBUG_REASON_ERROR = 0, |
| 35 | + DEBUG_REASON_USER_LAUNCHED = 1, |
| 36 | + DEBUG_REASON_USER_ATTACHED = 2, |
| 37 | + DEBUG_REASON_AUTO_ATTACHED = 3, |
| 38 | + DEBUG_REASON_CAUSALITY = 4 |
| 39 | +}; |
| 40 | +``` |
| 41 | + |
| 42 | +#### Parameters |
| 43 | +DEBUG_REASON_ERROR |
| 44 | +A non-specific error occurred (this is used as a default condition when none of the other reasons fit). |
| 45 | + |
| 46 | +DEBUG_REASON_USER_LAUNCHED |
| 47 | +The process was launched at the user's request. |
| 48 | + |
| 49 | +DEBUG_REASON_USER_ATTACHED |
| 50 | +The already-running process was attached to by the user. |
| 51 | + |
| 52 | +DEBUG_REASON_AUTO_ATTACHED |
| 53 | +The process was automatically attached to when it was launched. |
| 54 | + |
| 55 | +DEBUG_REASON_CAUSALITY |
| 56 | +The process was launched due to a *Just-In-Time* (JIT) debugging event. |
| 57 | + |
| 58 | +## Remarks |
| 59 | +Returned from the [GetDebugReason](../../../extensibility/debugger/reference/idebugprocess3-getdebugreason.md) method. |
| 60 | + |
| 61 | +## Requirements |
| 62 | +Header: msdbg.h |
| 63 | + |
| 64 | +Namespace: Microsoft.VisualStudio.Debugger.Interop |
| 65 | + |
| 66 | +Assembly: Microsoft.VisualStudio.Debugger.Interop.dll |
| 67 | + |
| 68 | +## See Also |
| 69 | +[Enumerations](../../../extensibility/debugger/reference/enumerations-visual-studio-debugging.md) |
| 70 | +[GetDebugReason](../../../extensibility/debugger/reference/idebugprocess3-getdebugreason.md) |
0 commit comments