IVsDebuggableProjectCfg.DebugLaunch Method
Starts the debugger.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Déclaration
Function DebugLaunch ( _
grfLaunch As UInteger _
) As Integer
'Utilisation
Dim instance As IVsDebuggableProjectCfg
Dim grfLaunch As UInteger
Dim returnValue As Integer
returnValue = instance.DebugLaunch(grfLaunch)
int DebugLaunch(
uint grfLaunch
)
int DebugLaunch(
[InAttribute] unsigned int grfLaunch
)
function DebugLaunch(
grfLaunch : uint
) : int
Parameters
grfLaunch
Type: System.UInt32[in] Flags that determine the conditions under which to start the debugger. For valid grfLaunch values, see __VSDBGLAUNCHFLAGS.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
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.
Note
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 Packagesample.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsDebuggableProjectCfg Interface