IDebugCanStopEvent2::GetReason
Gets the reason why the debug engine (DE) wants to stop.
Syntax
Parameters
pcr
[out] Returns a value from the CANSTOP_REASON enumeration that describes the reason for this event.
Return Value
If successful, returns S_OK
; otherwise, returns an error code.
Remarks
This method is typically called before the CanStop method so the caller can determine whether to pass non-zero (TRUE
) to the IDebugCanStopEvent2::CanStop
method.
The reason for stopping can be either CANSTOP_ENTRYPOINT
, which means the DE has reached an entry point, or CANSTOP_STEPIN
, which means the DE has stepped into a function.