共用方式為


IVsDebugger Interface

Definition

Provides access to the current debugger so that the package can listen for debugger events. You can get an instance of this interface from the GetIVsDebugger() method of the LanguageService service.

public interface class IVsDebugger
public interface class IVsDebugger
__interface IVsDebugger
[System.Runtime.InteropServices.ComConversionLoss]
[System.Runtime.InteropServices.Guid("7D960B16-7AF8-11D0-8E5E-00A0C911005A")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsDebugger
[System.Runtime.InteropServices.ComConversionLoss]
[System.Runtime.InteropServices.Guid("7D960B16-7AF8-11D0-8E5E-00A0C911005A")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsDebugger
[<System.Runtime.InteropServices.ComConversionLoss>]
[<System.Runtime.InteropServices.Guid("7D960B16-7AF8-11D0-8E5E-00A0C911005A")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsDebugger = interface
[<System.Runtime.InteropServices.ComConversionLoss>]
[<System.Runtime.InteropServices.Guid("7D960B16-7AF8-11D0-8E5E-00A0C911005A")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsDebugger = interface
Public Interface IVsDebugger
Attributes

Remarks

The DebugLaunch can add or modify parameters passed to the LaunchDebugTargets to, for example, launch a custom debug engine.

Notes to Implementers

The environment implements this interface.

Notes to Callers

This interface is used by DebugLaunch(UInt32).

Methods

AdviseDebugEventCallback(Object)

Used by a client to receive notifications of debugger events. In general, use AdviseDebuggerEvents(IVsDebuggerEvents, UInt32) and UnadviseDebuggerEvents(UInt32) instead.

AdviseDebuggerEvents(IVsDebuggerEvents, UInt32)

Used by a client to get notification of debugger events.

AllowEditsWhileDebugging(Guid)

Indicates whether or not the language service allows writing to files during debugging.

ExecCmdForTextPos(VsTextPos[], Guid, UInt32, UInt32, IntPtr, IntPtr)

Obsolete. Do not use.

GetDataTipValue(IVsTextLines, TextSpan[], String, String)

Retrieves debugger data tip text for a selected section of text.

GetENCUpdate(Object)

Retrieves the Edit and Continue (ENC) update for this program. A custom debug engine always returns E_NOTIMPL.

GetMode(DBGMODE[])

Returns the current debugger mode, a value in the DBGMODE enumeration such as DBGMODE_Break.

InsertBreakpointByName(Guid, String)

Inserts a breakpoint at a named location in the program, such as a function name.

IsBreakpointOnName(Guid, String, Int32)

Tests for a breakpoint set on a named location.

LaunchDebugTargets(UInt32, IntPtr)

Launches or attaches to the specified processes under the control of the debugger.

ParseFileRedirection(String, String, IntPtr, IntPtr, IntPtr)

Parses the command line contained in the argument string, and returns the arguments and handles to any redirected output.

QueryStatusForTextPos(VsTextPos[], Guid, UInt32, OLECMD[], IntPtr)

Obsolete. Do not use.

RemoveBreakpointsByName(Guid, String)

Removes a breakpoint at a named location in the program, such as a function name.

ToggleBreakpointByName(Guid, String)

Toggle a breakpoint at a named location in the program, such as a function name.

UnadviseDebugEventCallback(Object)

Used by a client to stop receiving notifications of debugger events. In general, use AdviseDebuggerEvents(IVsDebuggerEvents, UInt32) and UnadviseDebuggerEvents(UInt32) instead.

UnadviseDebuggerEvents(UInt32)

Used by a client to stop receiving notifications of debugger events. Requires the cookie returned by AdviseDebuggerEvents(IVsDebuggerEvents, UInt32).

Applies to