IDebugBoundBreakpoint2::GetHitCount
Note
This article applies to Visual Studio 2015. 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
Gets the current hit count for this bound breakpoint.
Syntax
HRESULT GetHitCount(
DWORD* pdwHitCount
);
int GetHitCount(
out uint pdwHitCount
);
Parameters
pdwHitCount
[out] Returns the hit count.
Return Value
If successful, returns S_OK
; otherwise, returns an error code. Returns E_BP_DELETED
if the state of the bound breakpoint object is set to BPS_DELETED
(part of the BP_STATE enumeration).
Remarks
The hit count is the number of times this breakpoint has fired during the current run of the session.