IXtfApplicationClient::DebugEnable Method

Enables or disables debugging for the app package with the specified package moniker.

Note Note that you should only set the debug flag for a package when that package is not running. Setting the debug flag on a running package can yield unpredictable results.

Syntax

public:
HRESULT DebugEnable(
         LPCWSTR pszPackageMoniker,
         BOOL fEnable
)  

Parameters

pszPackageMoniker
Type: LPCWSTR 

Pointer to the package moniker of the app.

fEnable
Type: BOOL 

Specify true to enable debugging; false to disable debugging.

Return value

Type: HRESULT 

HRESULT success or error code.

Requirements

Header: Declared in xtfapplication.h.

Library: Use xtfapplication.lib.

Remarks

Setting the debug flag for an app package has the following effects for all apps in the app package:

Clearing the debug flag for an app package has the following effects for apps in the app package:

The state of the debug flag applies on a package-wide basis. If you have multiple apps in a single package with the debug flag set, then all of the apps will run in debug mode.

Rebooting your dev kit clears the debug flag.

Running your app from Visual Studio using F5 (Start Debugging) automatically sets the debug flag before running your app, and clears the flag when you stop running your app. If you start with Ctrl+F5 (Start Without Debugging), the debug flag is cleared before your app runs, and remains cleared after your app terminates. If your app crashes while in debug mode while Visual Studio is attached, then Visual Studio will clear the debug flag when it is detached from your app.

The debug flag state does not change in the following situations:

See also

Reference

IXtfApplicationClient Interface

IXtfApplicationClient Members

XtfApplication