Skip to content

Update _DEBUG macro reference #5600

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
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
12 changes: 6 additions & 6 deletions docs/c-runtime-library/debug.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
---
description: "Learn more about: _DEBUG"
title: "_DEBUG"
ms.date: "11/04/2016"
description: "Learn more about: _DEBUG"
ms.date: 11/04/2016
helpviewer_keywords: ["DEBUG macro", "_DEBUG macro"]
ms.assetid: a9901568-4846-4731-a404-399d947e2e7a
---
# `_DEBUG`

The compiler defines `_DEBUG` when you specify the /MTd or /MDd option. These options specify debug versions of the C run-time library.
The compiler defines `_DEBUG` when you specify the [`/MTd`](../build/reference/md-mt-ld-use-run-time-library.md), [`/MDd`](../build/reference/md-mt-ld-use-run-time-library.md), or [`/LDd`](../build/reference/md-mt-ld-use-run-time-library.md) option. These options specify debug versions of the C run-time library.

For more information, see [CRT debugging techniques](./crt-debugging-techniques.md).
For more information, see [CRT debugging techniques](crt-debugging-techniques.md).

## See also

[Control flags](./control-flags.md)
[Control flags](control-flags.md)\
[Predefined macros](../preprocessor/predefined-macros.md)