Share via


IDebugStackFrame2::GetDocumentContext

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Gets the document context for this stack frame.

Syntax

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 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

IDebugStackFrame2
IDebugDocumentContext2
GetDocumentContext
GetCodeContext