Share via


IVsDebuggableProjectCfg2.OnBeforeDebugLaunch Method

Provides a method the implementer can use to perform necessary actions before the actual launch of the debugger.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'Declaration
Function OnBeforeDebugLaunch ( _
    grfLaunch As UInteger _
) As Integer
'Usage
Dim instance As IVsDebuggableProjectCfg2 
Dim grfLaunch As UInteger 
Dim returnValue As Integer 

returnValue = instance.OnBeforeDebugLaunch(grfLaunch)
int OnBeforeDebugLaunch(
    uint grfLaunch
)
int OnBeforeDebugLaunch(
    [InAttribute] unsigned int grfLaunch
)
function OnBeforeDebugLaunch(
    grfLaunch : uint
) : int

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

At the beginning of debugging, the solution build manager first calls OnBeforeDebugLaunch on each project supporting this interface. It then goes through the projects again and performs the actual call to DebugLaunch.

.NET Framework Security

See Also

Reference

IVsDebuggableProjectCfg2 Interface

IVsDebuggableProjectCfg2 Members

Microsoft.VisualStudio.Shell.Interop Namespace