description | title | ms.date | ms.topic | f1_keywords | helpviewer_keywords | author | ms.author | manager | ms.subservice | dev_langs | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Notifies the debug engine (DE) whether or not to stop at the current code location or just continue execution. |
IDebugCanStopEvent2::CanStop |
11/04/2016 |
reference |
|
|
maiak |
maiak |
mijacobs |
debug-diagnostics |
|
Notifies the debug engine (DE) whether or not to stop at the current code location or just continue execution.
int CanStop (
int fCanStop
);
HRESULT CanStop (
BOOL fCanStop
);
fCanStop
[in] Non-zero (TRUE
) if the DE should stop at the current code location; otherwise, zero (FALSE
).
If successful, returns S_OK
; otherwise, returns an error code.
The receiver of this event typically calls the 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.