Share via


IDebugCanStopEvent2::CanStop

Notifies the debug engine (DE) whether or not to stop at the current code location or just continue execution.

HRESULT CanStop ( 
   BOOL fCanStop
);
int CanStop ( 
   int fCanStop
);

Parameters

  • fCanStop
    [in] Non-zero (TRUE) if the DE should stop at the current code location; otherwise, zero (FALSE).

Return Value

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

Remarks

The receiver of this event typically calls the IDebugCanStopEvent2::GetReason method to determine the reason the DE wants to stop, and then calls the IDebugCanStopEvent2::CanStop method with the appropriate response.

If the DE stops, it sends an event that describes the reason for stopping. There are typically two events that are sent, a user or signal break represented by the IDebugBreakEvent2 interface, and a breakpoint event represented by the IDebugBreakpointEvent2 interface.

See Also

Reference

IDebugCanStopEvent2

IDebugBreakEvent2

IDebugBreakpointEvent2

IDebugCanStopEvent2::GetReason