Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.



The new home for Visual Studio documentation is Visual Studio 2017 Documentation on

The latest version of this topic can be found at __debugbreak.

Microsoft Specific**

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

void __debugbreak();  

__debugbreakx86, ARM, x64<intrin.h>

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

System_CAPS_ICON_note.jpg 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() {  

is similar to:

main() {  
   __asm {  
      int 3  

on an x86 computer.

This routine is only available as an intrinsic.

Compiler Intrinsics

© 2017 Microsoft