_CrtDbgBreak
div
eof
TOC
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

_CrtDbgBreak

Updated: December 2008

Sets a breakpoint on a particular line of code. (Used in debug mode only.)

void _CrtDbgBreak( void );

There is no return value.

The _CrtDbgBreak function sets a debug breakpoint on the particular line of code where the function resides. This function is used in debug mode only and is dependent on _DEBUG being previously defined.

For more information about using other hook-capable run-time functions and writing your own client-defined hook functions, see Writing Your Own Debug Hook Functions.

Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples.

Routine

Required header

_CrtDbgBreak

<CRTDBG.h>

Debug versions of C run-time libraries only.

Date

History

Reason

December 2008

Added link to __debugbreak.

Customer feedback.

Show:
© 2016 Microsoft