| title | __debugbreak | Microsoft Docs | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ms.custom | ||||||||||||||
| ms.date | 11/04/2016 | |||||||||||||
| ms.reviewer | ||||||||||||||
| ms.suite | ||||||||||||||
| ms.technology |
|
|||||||||||||
| ms.tgt_pltfrm | ||||||||||||||
| ms.topic | article | |||||||||||||
| f1_keywords |
|
|||||||||||||
| dev_langs |
|
|||||||||||||
| helpviewer_keywords |
|
|||||||||||||
| ms.assetid | 1d1e1c0c-891a-4613-ae4b-d790094ba830 | |||||||||||||
| caps.latest.revision | 16 | |||||||||||||
| author | corob-msft | |||||||||||||
| ms.author | corob | |||||||||||||
| manager | ghogen | |||||||||||||
| translation.priority.ht |
|
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, [!INCLUDEvcprx64] | <intrin.h> |
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