IDebugProgramNode2

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

This interface represents a program that can be debugged.

Syntax

IDebugProgramNode2 : IUnknown

Notes for Implementers

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.

Notes for Callers

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.

Methods in Vtable Order

The following table shows the methods of IDebugProgramNode2.

Method Description
GetProgramName Gets the name of a program.
GetHostName Gets the name of the process hosting a program.
GetHostPid Gets the system process identifier for the process hosting a program.
GetHostMachineName_V7 DEPRECATED. DO NOT USE.
Attach_V7 DEPRECATED. DO NOT USE. See the IDebugProgramNodeAttach2 interface for an alternative approach.
GetEngineInfo Gets the name and identifier of the DE running this program.
DetachDebugger_V7 DEPRECATED. DO NOT USE.

Remarks

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

Requirements

Header: Msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See also