Windows desktop applications
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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]

Type: LPCWSTR

The package full name.

debuggerCommandLine [in]

Type: LPCWSTR

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

environment [in]

Type: PZZWSTR

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

Return value

Type: HRESULT

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

Minimum supported server

Windows Server 2012

IDL

Shobjidl.idl

See also

IPackageDebugSettings

 

 

Show:
© 2016 Microsoft