Freigeben über


IVsDebugger2.ShowSource Method

Displays a source file in the IDE. Takes as arguments a pointer to an IUnknown interface that can be queried for IDebugDocumentContext2 and display options.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'Declaration
Function ShowSource ( _
    pUnkDebugDocContext As Object, _
    fMakeActive As Integer, _
    fAlwaysMoveCaret As Integer, _
    fPromptToFindSource As Integer, _
    fIgnoreIfNotFound As Integer, _
    <OutAttribute> ByRef ppTextView As IVsTextView _
) As Integer
int ShowSource(
    Object pUnkDebugDocContext,
    int fMakeActive,
    int fAlwaysMoveCaret,
    int fPromptToFindSource,
    int fIgnoreIfNotFound,
    out IVsTextView ppTextView
)
int ShowSource(
    [InAttribute] Object^ pUnkDebugDocContext, 
    [InAttribute] int fMakeActive, 
    [InAttribute] int fAlwaysMoveCaret, 
    [InAttribute] int fPromptToFindSource, 
    [InAttribute] int fIgnoreIfNotFound, 
    [OutAttribute] IVsTextView^% ppTextView
)
abstract ShowSource : 
        pUnkDebugDocContext:Object * 
        fMakeActive:int * 
        fAlwaysMoveCaret:int * 
        fPromptToFindSource:int * 
        fIgnoreIfNotFound:int * 
        ppTextView:IVsTextView byref -> int
function ShowSource(
    pUnkDebugDocContext : Object, 
    fMakeActive : int, 
    fAlwaysMoveCaret : int, 
    fPromptToFindSource : int, 
    fIgnoreIfNotFound : int, 
    ppTextView : IVsTextView
) : int

Parameters

  • pUnkDebugDocContext
    Type: Object

    [in] Pointer to an IUnknown interface on an object implementing IDebugDocumentContext2.

  • fMakeActive
    Type: Int32

    [in] Boolean. If true, makes the source file window the active window.

  • fAlwaysMoveCaret
    Type: Int32

    [in] Boolean. If true, move the caret to the position indicated by the document context through the IDebugDocumentContext2::GetStatementRange method of the IDebugDocumentContext2 interface.

  • fPromptToFindSource
    Type: Int32

    [in] Boolean. If true, prompt the user if the file is not found.

  • fIgnoreIfNotFound
    Type: Int32

    [in] Boolean. If true, do not try to find the file in the future if it is not found now.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsDebugger2::ShowSource(
   [in] IUnknown *pUnkDebugDocContext,
   [in] BOOL fMakeActive,
   [in] BOOL fAlwaysMoveCaret,
   [in] BOOL fPromptToFindSource,
   [in] BOOL fIgnoreIfNotFound,
   [out] IVsTextView **ppTextView
);

.NET Framework Security

See Also

Reference

IVsDebugger2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace