Skip to content

Delete unnecessary spaces #2519

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 14, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
114 changes: 57 additions & 57 deletions docs/extensibility/debugger/reference/debug-reason.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,69 +2,69 @@
title: "DEBUG_REASON | Microsoft Docs"
ms.date: "11/04/2016"
ms.topic: "conceptual"
f1_keywords:
f1_keywords:
- "DEBUG_REASON"
helpviewer_keywords:
helpviewer_keywords:
- "DEBUG_REASON enumeration"
ms.assetid: ad2ee898-8648-4671-9078-d32873862346
author: "gregvanl"
ms.author: "gregvanl"
manager: jillfra
ms.workload:
ms.workload:
- "vssdk"
---
# DEBUG_REASON
Specifies why the process was launched for debugging.
## Syntax
```cpp
enum enum_DEBUG_REASON {
DEBUG_REASON_ERROR = 0,
DEBUG_REASON_USER_LAUNCHED = 1,
DEBUG_REASON_USER_ATTACHED = 2,
DEBUG_REASON_AUTO_ATTACHED = 3,
DEBUG_REASON_CAUSALITY = 4
};
typedef DWORD DEBUG_REASON;
```
```csharp
public enum enum_DEBUG_REASON {
DEBUG_REASON_ERROR = 0,
DEBUG_REASON_USER_LAUNCHED = 1,
DEBUG_REASON_USER_ATTACHED = 2,
DEBUG_REASON_AUTO_ATTACHED = 3,
DEBUG_REASON_CAUSALITY = 4
};
```
#### Parameters
DEBUG_REASON_ERROR
A non-specific error occurred (this is used as a default condition when none of the other reasons fit).
DEBUG_REASON_USER_LAUNCHED
The process was launched at the user's request.
DEBUG_REASON_USER_ATTACHED
The already-running process was attached to by the user.
DEBUG_REASON_AUTO_ATTACHED
The process was automatically attached to when it was launched.
DEBUG_REASON_CAUSALITY
The process was launched due to a *Just-In-Time* (JIT) debugging event.
## Remarks
Returned from the [GetDebugReason](../../../extensibility/debugger/reference/idebugprocess3-getdebugreason.md) method.
## Requirements
Header: msdbg.h
Namespace: Microsoft.VisualStudio.Debugger.Interop
Assembly: Microsoft.VisualStudio.Debugger.Interop.dll
## See Also
[Enumerations](../../../extensibility/debugger/reference/enumerations-visual-studio-debugging.md)
[GetDebugReason](../../../extensibility/debugger/reference/idebugprocess3-getdebugreason.md)
Specifies why the process was launched for debugging.

## Syntax

```cpp
enum enum_DEBUG_REASON {
DEBUG_REASON_ERROR = 0,
DEBUG_REASON_USER_LAUNCHED = 1,
DEBUG_REASON_USER_ATTACHED = 2,
DEBUG_REASON_AUTO_ATTACHED = 3,
DEBUG_REASON_CAUSALITY = 4
};
typedef DWORD DEBUG_REASON;
```

```csharp
public enum enum_DEBUG_REASON {
DEBUG_REASON_ERROR = 0,
DEBUG_REASON_USER_LAUNCHED = 1,
DEBUG_REASON_USER_ATTACHED = 2,
DEBUG_REASON_AUTO_ATTACHED = 3,
DEBUG_REASON_CAUSALITY = 4
};
```

#### Parameters
DEBUG_REASON_ERROR
A non-specific error occurred (this is used as a default condition when none of the other reasons fit).

DEBUG_REASON_USER_LAUNCHED
The process was launched at the user's request.

DEBUG_REASON_USER_ATTACHED
The already-running process was attached to by the user.

DEBUG_REASON_AUTO_ATTACHED
The process was automatically attached to when it was launched.

DEBUG_REASON_CAUSALITY
The process was launched due to a *Just-In-Time* (JIT) debugging event.

## Remarks
Returned from the [GetDebugReason](../../../extensibility/debugger/reference/idebugprocess3-getdebugreason.md) method.

## Requirements
Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

## See Also
[Enumerations](../../../extensibility/debugger/reference/enumerations-visual-studio-debugging.md)
[GetDebugReason](../../../extensibility/debugger/reference/idebugprocess3-getdebugreason.md)