> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DebugQuery

> IXtfApplicationClient::DebugQuery

Queries whether debugging is enabled for the app package with the specified package moniker.

## Syntax

```cpp theme={null}
public:
HRESULT DebugQuery( 
    LPCWSTR pszPackageMoniker,
    BOOL *pfEnabled
)

```

### Parameters

*pszPackageMoniker*\
Type: LPCWSTR

A pointer to the package moniker for the app.

*pfEnabled*\
Type: BOOL\*

On successful completion, contains a value indicating whether debugging is enabled for the app package with the specified package moniker.

### Return value

Type: HRESULT

Returns `S_OK` if successful; otherwise, returns an HRESULT error code.

## Requirements

**Header:** xtfapplication.h

**Library:** xtfapplication.lib

**Supported platforms:** Windows (for XBOX console tools)

## See also

[IXtfApplicationClient](https://docs.xbox.com/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/ixtfapplicationclient-xtfapplication-xbox-microsoft-t.md)\
[XtfApplication](https://docs.xbox.com/reference/tools/xtf/xtfapplication/xtfapplication-xbox-microsoft-n.md)


## Related topics

- [IXtfApplicationClient Interface (Interface contents)](https://docs.xbox.com/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/ixtfapplicationclient-xtfapplication-xbox-microsoft-t.md)
- [Query](https://docs.xbox.com/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_query.md)
- [POST /titles/{titleId}/activities/query](https://docs.xbox.com/reference/live/rest/uri/multiplayeractivity/swagger-uris/uri-ExternalGetActivityBatch.md)
- [Store Development Entitlements Tool (DevEntitlementTool.exe)](https://docs.xbox.com/tools/tools-services/live-dev-entitlements-tool.md)
- [Multiplayer Session History Viewer (MultiplayerSessionHistoryViewer.exe)](https://docs.xbox.com/tools/tools-services/live-mp-session-history-viewer.md)
