Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
Syntax
void __debugbreak();
Requirements
Intrinsic | Architecture | Header |
---|---|---|
__debugbreak |
x86, ARM, x64 | <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.