Share via


LanguageService.GetIVsDebugger Method

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

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Declaration
Public Function GetIVsDebugger As IVsDebugger
public IVsDebugger GetIVsDebugger()
public:
IVsDebugger^ GetIVsDebugger()
member GetIVsDebugger : unit -> IVsDebugger 
public function GetIVsDebugger() : IVsDebugger

Return Value

Type: Microsoft.VisualStudio.Shell.Interop.IVsDebugger
If successful, returns an IVsDebugger object; otherwise, returns a null value.

Remarks

This method calls LanguageService.GetService with the GUID of the IVsDebugger interface. If 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.

.NET Framework Security

See Also

Reference

LanguageService Class

Microsoft.VisualStudio.Package Namespace