Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit editor mode

__debugbreak

Feedback

In this article

Microsoft Specific

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

Syntax

void __debugbreak();

Requirements

IntrinsicArchitectureHeader
__debugbreakx86, x64, ARM, ARM64<intrin.h>

Remarks

The__debugbreak compiler intrinsic, similar toDebugBreak, 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:

int main() {   __debugbreak();}

is similar to:

int main() {   __asm {      int 3   }}

on an x86 computer.

On ARM64, the__debugbreak intrinsic is compiled into the instructionbrk #0xF000.

This routine is only available as an intrinsic.

END Microsoft Specific

See also

Compiler intrinsics
Keywords


Feedback

Was this page helpful?

YesNoNo

Need help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?

  • Last updated on

In this article

Was this page helpful?

YesNo
NoNeed help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?