IPackageDebugSettings::EnableDebugging method

Enables debug mode for the processes of the specified package.

Syntax


HRESULT EnableDebugging(
  [in] LPCWSTR packageFullName,
  [in] LPCWSTR debuggerCommandLine,
  [in] PZZWSTR environment
);

Parameters

packageFullName [in]

The package full name.

debuggerCommandLine [in]

The command line to use to launch processes from this package. This parameter is optional.

environment [in]

Any environment strings to pass to processes. This parameter is optional.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Enabling debug mode has the following effects:

  • Optionally enables debugger attach on activation.
  • Disables activation timeouts.
  • Disables automatic process suspension.
  • Disables automatic process termination.
  • Disables automatic process resumption.

To restore normal operation, call the DisableDebugging method.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

See also

IPackageDebugSettings
DisableDebugging

 

 

Show: