Skip to content

Latest commit

 

History

History
88 lines (73 loc) · 1.83 KB

File metadata and controls

88 lines (73 loc) · 1.83 KB
title __debugbreak | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-tools
ms.tgt_pltfrm
ms.topic article
f1_keywords
__debugbreak_cpp
__debugbreak
dev_langs
C++
helpviewer_keywords
breakpoints, __debugbreak intrinsic
__debugbreak intrinsic
ms.assetid 1d1e1c0c-891a-4613-ae4b-d790094ba830
caps.latest.revision 16
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

__debugbreak

Microsoft Specific

Causes a breakpoint in your code, where the user will be prompted to run the debugger.

Syntax

void __debugbreak();  

Requirements

Intrinsic Architecture Header
__debugbreak x86, ARM, [!INCLUDEvcprx64] <intrin.h>

Remarks

The __debugbreak compiler intrinsic, similar to DebugBreak, is a portable Win32 way to cause a breakpoint.

Note

When compiling with /clr, a function containing __debugbreak will be compiled to MSIL. asm int 3 causes a function to be compiled to native. For more information, see __asm.

For example:

main() {  
   __debugbreak();  
}  

is similar to:

main() {  
   __asm {  
      int 3  
   }  
}  

on an x86 computer.

This routine is only available as an intrinsic.

END Microsoft Specific

See Also

Compiler Intrinsics
Keywords