IDebugProgramEngines2IDebugProgramEngines2

程式節點會使用此介面來指定所有可能的偵錯工具引擎 (DE) 可將此程式進行偵錯工具。This interface is used by program nodes to specify all the possible debug engines (DE) that can debug this program.

語法Syntax

IDebugProgramEngines2 : IUnknown

實施者的注意事項Notes for Implementers

取消或自訂埠供應商會在執行 IDebugProgramNode2 的相同物件上,執行此介面,以支援建立特定程式所要使用的特定取消。A DE or a custom port supplier implements this interface on the same object that implements IDebugProgramNode2 to support establishing a specific DE to use for a particular program.

呼叫者注意事項Notes for Callers

呼叫介面上的 QueryInterface IDebugProgramNode2 來取得這個介面。Call QueryInterface on an IDebugProgramNode2 interface to obtain this interface.

依照 Vtable 順序的方法Methods in Vtable Order

下表顯示的方法 IDebugProgramEngines2The following table shows the methods of IDebugProgramEngines2.

方法Method 描述Description
EnumPossibleEnginesEnumPossibleEngines 指出可以對此程式進行偵錯工具的所有可能 DEs。Indicates all the possible DEs that can debug this program.
SetEngineSetEngine 選取要用來對此程式進行偵錯工具的取消。Selects the DE to use for debugging this program.

備註Remarks

一旦使用者選擇取消,該選項就會藉由呼叫 SetEngine向程式節點註冊。Once a DE is chosen by the user, that choice is registered with the program node by calling SetEngine. 選取的引擎會成為 GetEngineInfo所傳回的引擎。The selected engine becomes the engine returned by GetEngineInfo.

需求Requirements

標頭: msdbg。hHeader: msdbg.h

命名空間: VisualStudioNamespace: Microsoft.VisualStudio.Debugger.Interop

元件: Microsoft.VisualStudio.Debugger.Interop.dllAssembly: Microsoft.VisualStudio.Debugger.Interop.dll

另請參閱See also