From fea358f514b94142dd4c2e62f935b8d7d89de1c0 Mon Sep 17 00:00:00 2001
From: Rageking8 <106309953+Rageking8@users.noreply.github.com>
Date: Wed, 30 Jul 2025 23:15:02 +0800
Subject: [PATCH 1/4] Add mention of `/LDd` in `_DEBUG` macro reference

---
 docs/c-runtime-library/debug.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/c-runtime-library/debug.md b/docs/c-runtime-library/debug.md
index 049cce0df2..bbfddedf12 100644
--- a/docs/c-runtime-library/debug.md
+++ b/docs/c-runtime-library/debug.md
@@ -7,7 +7,7 @@ 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, /MDd, or /LDd option. These options specify debug versions of the C run-time library.
 
 For more information, see [CRT debugging techniques](./crt-debugging-techniques.md).
 

From 68fef1a903d88e08457389044101158da281000a Mon Sep 17 00:00:00 2001
From: Rageking8 <106309953+Rageking8@users.noreply.github.com>
Date: Wed, 30 Jul 2025 23:16:05 +0800
Subject: [PATCH 2/4] Add backticks in `_DEBUG` macro reference

---
 docs/c-runtime-library/debug.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/c-runtime-library/debug.md b/docs/c-runtime-library/debug.md
index bbfddedf12..cad5919065 100644
--- a/docs/c-runtime-library/debug.md
+++ b/docs/c-runtime-library/debug.md
@@ -7,7 +7,7 @@ ms.assetid: a9901568-4846-4731-a404-399d947e2e7a
 ---
 # `_DEBUG`
 
-The compiler defines `_DEBUG` when you specify the /MTd, /MDd, or /LDd option. These options specify debug versions of the C run-time library.
+The compiler defines `_DEBUG` when you specify the `/MTd`, `/MDd`, or `/LDd` option. These options specify debug versions of the C run-time library.
 
 For more information, see [CRT debugging techniques](./crt-debugging-techniques.md).
 

From 26d3f78a7609912c83c026d50c0473a3a88f7c49 Mon Sep 17 00:00:00 2001
From: Rageking8 <106309953+Rageking8@users.noreply.github.com>
Date: Wed, 30 Jul 2025 23:19:21 +0800
Subject: [PATCH 3/4] Simplify and add links in `_DEBUG` macro reference

---
 docs/c-runtime-library/debug.md | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/docs/c-runtime-library/debug.md b/docs/c-runtime-library/debug.md
index cad5919065..b2c5993852 100644
--- a/docs/c-runtime-library/debug.md
+++ b/docs/c-runtime-library/debug.md
@@ -7,10 +7,11 @@ ms.assetid: a9901568-4846-4731-a404-399d947e2e7a
 ---
 # `_DEBUG`
 
-The compiler defines `_DEBUG` when you specify the `/MTd`, `/MDd`, or `/LDd` 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)

From 84740f300d35ff663660c758cbe65c1d6236b786 Mon Sep 17 00:00:00 2001
From: Rageking8 <106309953+Rageking8@users.noreply.github.com>
Date: Wed, 30 Jul 2025 23:19:54 +0800
Subject: [PATCH 4/4] Update metadata in `_DEBUG` macro reference

---
 docs/c-runtime-library/debug.md | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/docs/c-runtime-library/debug.md b/docs/c-runtime-library/debug.md
index b2c5993852..f3d187ab4f 100644
--- a/docs/c-runtime-library/debug.md
+++ b/docs/c-runtime-library/debug.md
@@ -1,9 +1,8 @@
 ---
-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`
 
