IDebugProgramNode2

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

This interface represents a program that can be debugged.

IDebugProgramNode2 : IUnknown  

A debug engine (DE) or a custom port supplier implements this interface to represent a program that can be debugged. This interface is typically implemented on the same object that implements the IDebugProgram2 interface. This interface is registered with Visual Studio by calling PublishProgramNode.

Call GetProviderProgramNode to return this interface. A custom port supplier receives this interface through a call to AddProgramNode. A DE receives this interface through a call to Attach.

The following table shows the methods of IDebugProgramNode2.

MethodDescription
GetProgramNameGets the name of a program.
GetHostNameGets the name of the process hosting a program.
GetHostPidGets the system process identifier for the process hosting a program.
GetHostMachineName_V7DEPRECATED. DO NOT USE.
Attach_V7DEPRECATED. DO NOT USE. See the IDebugProgramNodeAttach2 interface for an alternative approach.
GetEngineInfoGets the name and identifier of the DE running this program.
DetachDebugger_V7DEPRECATED. DO NOT USE.

The session debug manager (SDM) typically calls GetProviderProgramNode to obtain this interface.

Header: Msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

Core Interfaces
IDebugProgramNodeAttach2
AddProgramNode
RemoveProgramNode
Attach
GetProviderProgramNode
PublishProgramNode

Show: