pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/DefaultRyan/cpp-docs/blob/master/docs/intrinsics/debugbreak.md

1ad343bd40328c.css" /> cpp-docs/docs/intrinsics/debugbreak.md at master · DefaultRyan/cpp-docs · GitHub
Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 1.34 KB

File metadata and controls

62 lines (43 loc) · 1.34 KB
title __debugbreak
ms.date 09/02/2019
f1_keywords
__debugbreak_cpp
__debugbreak
helpviewer_keywords
breakpoints, __debugbreak intrinsic
__debugbreak intrinsic
ms.assetid 1d1e1c0c-891a-4613-ae4b-d790094ba830

__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, x64, ARM, ARM64 <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.

On ARM64, the __debugbreak intrinsic is compiled into the instruction brk #0xF000.

This routine is only available as an intrinsic.

END Microsoft Specific

See also

Compiler intrinsics
Keywords

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy