Partager via


LanguageService.GetIVsDebugger Method

Definition

Returns an IVsDebugger object representing the currently available debugger in order to listen for debugger events.

public:
 Microsoft::VisualStudio::Shell::Interop::IVsDebugger ^ GetIVsDebugger();
public:
 Microsoft::VisualStudio::Shell::Interop::IVsDebugger ^ GetIVsDebugger();
Microsoft::VisualStudio::Shell::Interop::IVsDebugger GetIVsDebugger();
public Microsoft.VisualStudio.Shell.Interop.IVsDebugger GetIVsDebugger ();
member this.GetIVsDebugger : unit -> Microsoft.VisualStudio.Shell.Interop.IVsDebugger
Public Function GetIVsDebugger () As IVsDebugger

Returns

If successful, returns an IVsDebugger object; otherwise, returns a null value.

Remarks

This method calls Microsoft.VisualStudio.Package.LanguageService.GetService with the GUID of the IVsDebugger interface. If Microsoft.VisualStudio.Package.LanguageService.GetService returns an object, this method calls AdviseDebuggerEvents.

This method is called by the ViewFilter class when obtaining tool tip text for the identifier under the cursor. This method is also called by IsDebugging to determine if the debugger is active.

Applies to