Edit

Share via


IDebugCanStopEvent2::GetCodeContext

Gets the code context that describes the location of this event.

Syntax

int GetCodeContext( 
   out IDebugCodeContext2 ppCodeContext
);

Parameters

ppCodeContext
[out] Returns the IDebugCodeContext2 object that represents the current code location.

Return Value

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

Remarks

For most run-time architectures, a code context can be thought of as an address in a program's execution stream, pointing to a specific instruction.

To get the document context, which is oriented towards lines of source code, call the GetDocumentContext method.

See also