IDebugBreakpoint::GetPassCount method (dbgeng.h)
The GetPassCount method returns the number of times that the target was originally required to reach the breakpoint location before the breakpoint is triggered.
Syntax
HRESULT GetPassCount(
[out] PULONG Count
);
Parameters
[out] Count
The number of times that the target was originally required to hit the breakpoint before it is triggered. The number of times that the target was originally required to pass the breakpoint without triggering it is the value that is returned to Count, minus one.
Return value
Return code | Description |
---|---|
|
The method was successful. |
This method can also return error values. For more information, see Return Values.
Remarks
The GetPassCount method returns the number of hits that were originally required to trigger the breakpoint. The GetCurrentPassCount method returns the number of hits that still must occur to trigger the breakpoint. For example, if a breakpoint was created with a pass count of 20, and there have been 5 passes so far, this method GetPassCount returns 20 and GetCurrentPassCount returns 15.
After the target has hit the breakpoint enough times to trigger it, the breakpoint is triggered every time that it is hit, unless you call SetPassCount. You can also call SetPassCount to change the pass count before the breakpoint has been triggered. This call resets the original pass count and the remaining pass count.
If the debugger executes the code at the breakpoint location while stepping through the code, this execution does not contribute to the number of times that remain before the breakpoint is triggered.
The GetParameters method also returns the information that is returned in Count.
For more information about breakpoint properties, see Controlling Breakpoint Flags and Parameters.
Requirements
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | dbgeng.h (include Dbgeng.h) |