IXtfApplicationClient::DebugEnable
Enables or disables debugging for the app package with the specified package moniker.Syntax
Parameters
pszPackageMonikerType: LPCWSTR A pointer to the package moniker for the app. fEnable
Type: BOOL Specify TRUE to enable debugging, or FALSE to disable debugging.
Return value
Type: HRESULT ReturnsS_OK if successful; otherwise, returns an HRESULT error code.
Remarks
This method applies only to XBOX One Software Development Kit\ERA titles. Invoking this method has no effect on Microsoft Game Development Kit (GDK) titles.
pszPackageMoniker, respectively setting or clearing the debug flag for that package.
You should set the debug flag for a package only when that package is not running. Setting the debug flag on a running package can yield unpredictable results.
- The app is not terminated if it takes longer than 45 seconds to complete activation.
- The app is not terminated if it takes too long to suspend. The limit is 1 second for an exclusive app, or 5 seconds for a shared app.
- The app is not suspended after losing visibility for too long. The limit is 10 minutes for exclusive apps, or 5 seconds for shared apps.
- To suspend the app, either invoke the xbapp suspend (NDA topic) command or invoke the IXtfApplicationClient::Suspend function.
- When your app is in debug mode, it is not subject to normal Process Lifetime Management (PLM) limits, and will suspend or resume only when you direct it to do so using XBOX Tools Framework (XTF) tools.
In debug mode, your app can be suspended in states where the normal PLM process would not cause it to be suspended, such as when it is visible. Use caution when testing suspend and resume behavior while your app is running in debug mode, to ensure that you’re testing normal behavior and not the effects of running in debug mode.
- The app is terminated if it takes longer than 45 seconds to complete activation.
- The app is terminated if it takes too long to suspend. The limit is 1 second for an exclusive app, or 5 seconds for a shared app.
- The app is suspended after losing visibility for too long. The limit is 10 minutes for exclusive apps, or 5 seconds for shared apps.
- If the app crashes, as long as the Visual Studio debugger is not attached at the time.
- Through a suspend and resume operation.
- Through a termination, as long as the Visual Studio debugger is not attached at the time.
Requirements
Header: xtfapplication.h Library: xtfapplication.lib Supported platforms: Windows (for XBOX console tools)See also
IXtfApplicationClientXtfApplication
