Skip to content

Latest commit

 

History

History
32 lines (29 loc) · 1.47 KB

debugbreak-and-debugbreak.md

File metadata and controls

32 lines (29 loc) · 1.47 KB
title description ms.date ms.topic f1_keywords dev_langs helpviewer_keywords author ms.author manager ms.subservice
DebugBreak and __debugbreak
Learn how to use the DebugBreak function and the __debugbreak intrinsic to cause your program to break, just as though a breakpoint were set.
11/04/2016
conceptual
DebugBreak
CSharp
VB
FSharp
C++
debugging [C++], DebugBreak function
DebugBreak function
breakpoints, DebugBreak function
mikejo5000
mikejo
mijacobs
debug-diagnostics

DebugBreak and __debugbreak

You can call the DebugBreak Win32 function or the __debugbreak intrinsic at any point in your code. DebugBreak and __debugbreak have the same effect as setting a breakpoint at that location.

Because DebugBreak is a call to a system function, system debug symbols must be installed to ensure the correct call stack information is displayed after breaking. Otherwise, the call stack information displayed by the debugger may be off by one frame. If you use __debugbreak, symbols are not required.

Related content