IDebugStackFrame2::GetDocumentContext

Gets the document context for this stack frame.

Syntax

int GetDocumentContext ( 
   out IDebugDocumentContext2 ppCxt
);

Parameters

ppCxt
[out] Returns an IDebugDocumentContext2 object that represents the current position in a source document.

Return Value

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

Remarks

This method is faster than calling the GetCodeContext method and then calling the GetDocumentContext method on the code context. However, it is not guaranteed that every debug engine (DE) will implement this method.

See also