Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IVsDebuggableProjectCfg.QueryDebugLaunch Method

Determines whether the debugger can be launched, given the state of the launch flags.

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

int QueryDebugLaunch(
	uint grfLaunch,
	out int pfCanLaunch
)

Parameters

grfLaunch
Type: System.UInt32
[in] Flags that determine the conditions under which to launch the debugger. For valid grfLaunch values, see __VSDBGLAUNCHFLAGS.
pfCanLaunch
Type: System.Int32
[out] Pointer to a flag that is set to true if the debugger can be launched and false otherwise.

Return Value

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

COM Signature

From vsshell.idl:

HRESULT IVsDebuggableProjectCfg::QueryDebugLaunch(
   [in] VSDBGLAUNCHFLAGS grfLaunch,
   [out] BOOL *pfCanLaunch
);

This method determines whether or not the debugger can be launched and the Launch menu item enabled. When QueryDebugLaunch sets pfCanLaunch to true and the user selects the Launch menu item, the project calls DebugLaunch with the same set of flags that were used to call QueryDebugLaunch.

Community Additions

ADD
Show:
© 2015 Microsoft