This topic has not yet been rated - Rate this topic

IVsDebuggableProjectCfg.DebugLaunch Method

Starts the debugger.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

int DebugLaunch (
	[InAttribute] uint grfLaunch
)
int DebugLaunch (
	/** @attribute InAttribute() */ UInt32 grfLaunch
)
function DebugLaunch (
	grfLaunch : uint
) : int

Parameters

grfLaunch

[in] Flags that determine the conditions under which to start the debugger. For valid grfLaunch values, see __VSDBGLAUNCHFLAGS.

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

From vsshell.idl:

HRESULT IVsDebuggableProjectCfg::DebugLaunch(
   [in] VSDBGLAUNCHFLAGS grfLaunch
);

This method is called when the user selects the Launch menu item (F5). The set of flags specified in grfLaunch should be the same that were used in a prior call to the QueryDebugLaunch Method to determine whether or not the debugger could be launched.

NoteNote

Implementers: this method (and its interface) can be implemented in a project to launch custom programs under the debugger. To do the actual work of launching the program controlled by a project, call LaunchDebugTargets2 Method. An example of this can be found in the My C Package Samplesample.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ