--- title: "_DEBUG | Microsoft Docs" ms.custom: "" ms.date: "11/04/2016" ms.reviewer: "" ms.suite: "" ms.technology: - "cpp-standard-libraries" ms.tgt_pltfrm: "" ms.topic: "article" f1_keywords: - "_DEBUG" - "DEBUG" dev_langs: - "C++" helpviewer_keywords: - "DEBUG macro" - "_DEBUG macro" ms.assetid: a9901568-4846-4731-a404-399d947e2e7a caps.latest.revision: 8 author: "corob-msft" ms.author: "corob" manager: "ghogen" translation.priority.ht: - "cs-cz" - "de-de" - "es-es" - "fr-fr" - "it-it" - "ja-jp" - "ko-kr" - "pl-pl" - "pt-br" - "ru-ru" - "tr-tr" - "zh-cn" - "zh-tw" --- # _DEBUG The compiler defines `_DEBUG` when you specify the /MTd or /MDd option. These options specify debug versions of the C run-time library. For more information, see [CRT Debugging Techniques](/visualstudio/debugger/crt-debugging-techniques). ## See Also [Control Flags](../c-runtime-library/control-flags.md)