共用方式為


IDebugProgramNode2

這個介面表示一種程式,才能進行偵錯。

IDebugProgramNode2 : IUnknown

實作器注意事項

偵錯引擎 (DE) 或自訂的連接埠提供者實作這個介面表示一種程式,才能進行偵錯。 通常會實作這個介面上實作的同一個物件IDebugProgram2介面。 這個介面登錄與Visual Studio藉由呼叫IDebugProgramPublisher2::PublishProgramNode

呼叫者的備忘稿

呼叫IDebugProgramProvider2::GetProviderProgramNode ,傳回這個介面。 自訂的連接埠提供者會收到這個介面,透過呼叫IDebugPortNotify2::AddProgramNode。 將 DE 接收這個介面,透過呼叫IDebugEngine2::Attach

方法 Vtable 順序

下表顯示的方法IDebugProgramNode2

方法

描述

IDebugProgramNode2::GetProgramName

取得程式的名稱。

IDebugProgramNode2::GetHostName

取得裝載程式的處理序的名稱。

IDebugProgramNode2::GetHostPid

取得裝載程式的處理序中的系統處理序識別項。

IDebugProgramNode2::GetHostMachineName_V7

被取代。 請勿使用。

IDebugProgramNode2::Attach_V7

被取代。 請勿使用。 請參閱IDebugProgramNodeAttach2另一個方法的介面。

IDebugProgramNode2::GetEngineInfo

取得名稱和執行這個程式 DE 的識別項。

IDebugProgramNode2::DetachDebugger_V7

被取代。 請勿使用。

備註

工作階段偵錯管理員 (SDM) 通常會呼叫IDebugProgramProvider2::GetProviderProgramNode以取得這個介面。

需求

標頭: Msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

組件: Microsoft.VisualStudio.Debugger.Interop.dll

請參閱

參考

IDebugProgramNodeAttach2

IDebugPortNotify2::AddProgramNode

IDebugPortNotify2::RemoveProgramNode

IDebugEngine2::Attach

IDebugProgramProvider2::GetProviderProgramNode

IDebugProgramPublisher2::PublishProgramNode

概念

核心介面