다음을 통해 공유


IDebugStackFrame2::GetDocumentContext

Gets the document context for this stack frame.

HRESULT GetDocumentContext ( 
   IDebugDocumentContext2** ppCxt
);
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 IDebugStackFrame2::GetCodeContext method and then calling the IDebugCodeContext2::GetDocumentContext method on the code context. However, it is not guaranteed that every debug engine (DE) will implement this method.

See Also

Reference

IDebugStackFrame2

IDebugDocumentContext2

IDebugCodeContext2::GetDocumentContext

IDebugStackFrame2::GetCodeContext