IDebugProgramPublisher2::PublishProgram
Applies to: Visual Studio Visual 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 method makes a program available for debug engines (DEs) and the session debug manager.
Syntax
HRESULT PublishProgram(
CONST_GUID_ARRAY Engines,
LPCOLESTR szFriendlyName,
IUnknown* pDebuggeeInterface
);
int PublishProgram(
CONST_GUID_ARRAY Engines,
string szFriendlyName,
object pDebuggeeInterface
);
Parameters
Engines
[in] An array of GUIDs for DEs that can launch or attach to this program.
szFriendlyName
[in] Friendly name for the program (this appears in menus or dialogs presented to the user).
pDebuggeeInterface
[in] IUnknown
interface for the program (this value is used as a cookie to uniquely identify the program; this same value is used to "unpublish" the program)
Return Value
If successful, returns S_OK
; otherwise, returns an error code.
Remarks
To make a program no longer available for debugging, call UnpublishProgram.