__debugbreak
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
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();
| Intrinsic | Architecture | Header |
|---|---|---|
__debugbreak | x86, ARM, x64 | <intrin.h> |
The __debugbreak compiler intrinsic, similar to DebugBreak, is a portable Win32 way to cause a breakpoint.
When compiling with /clr, a function containing |
For example:
main() {
__debugbreak();
}
is similar to:
main() {
__asm {
int 3
}
}
on an x86 computer.
This routine is only available as an intrinsic.