Export (0) Print
Expand All

__debugbreak

Microsoft Specific

The __debugbreak compiler intrinsic, similar to the DebugBreak, causes a breakpoint in your code and the user will be prompted to run the debugger. This is a portable, Win32 way to cause a breakpoint.

For example:

main() {
   __debugbreak();
}

This is similar to:

main() {
   __asm {
      int 3
   }
}

on an x86 machine.

END Microsoft Specific

See Also

Compiler Intrinsics | C++ Keywords

Show:
© 2014 Microsoft