description | title | ms.date | ms.topic | f1_keywords | helpviewer_keywords | author | ms.author | manager | ms.subservice | dev_langs | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Requests that the program stop execution the next time one of its threads attempts to run. |
IDebugProgram2::CauseBreak |
11/04/2016 |
reference |
|
|
maiak |
maiak |
mijacobs |
debug-diagnostics |
|
Requests that the program stop execution the next time one of its threads attempts to run.
int CauseBreak();
HRESULT CauseBreak(
void
);
If successful, returns S_OK
; otherwise, returns an error code.
An IDebugBreakEvent2 event is sent when the program next attempts to run code after this method is called.
This method is asynchronous in that the method returns immediately without necessarily waiting for the program to stop.