Share via


IDebugBreakpointEvent2::EnumBreakpoints

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Creates an enumerator for all the breakpoints that fired at the current code location.

Syntax

HRESULT EnumBreakpoints(
  IEnumDebugBoundBreakpoints2** ppEnum
);
int EnumBreakpoints(
  out IEnumDebugBoundBreakpoints2 ppEnum
);

Parameters

ppEnum
[out] Returns an IEnumDebugBoundBreakpoints2 object that enumerates all the breakpoints associated with the current code location.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

Not all breakpoints at a particular location may fire at a particular time (for example, a breakpoint with a condition will not fire until that condition is met).

See also