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

# XtfCreateDebugMonitorClient

> XtfCreateDebugMonitorClient

# XtfCreateDebugMonitorClient

[IXtfDebugMonitorClient](/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-t) インターフェイスの新しいインスタンスを初期化します。

<a id="syntaxSection" />

## 構文

```cpp theme={null}
HRESULT XtfCreateDebugMonitorClient(
         LPCWSTR pszAddress,
         REFIID riid,
         void **ppvObject
)  
```

<a id="ID4EL" />

### パラメーター

*pszAddress*\
型: LPCWSTR

デバッグ出力を受信する開発コンソールの tools IP アドレスへのポインターです。

*riid*\
型: REFIID

新しく作成された [IXtfDebugMonitorClient](/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-t) のインスタンス識別子を受け取るポインターです。

*ppvObject*\
型: void \*\*

新しく作成された [IXtfDebugMonitorClient](/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-t) への参照を受け取るポインターです。

<a id="ID4ES" />

### 戻り値

型: HRESULT

HRESULT の成功またはエラー コード。

<a id="requirements" />

## 解説

[IXtfDebugMonitorClient](/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-t) インターフェイスを使用すると、開発コンソール上のゲームからデバッグ出力を受信できます。クライアントを作成した後、その [start](/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/methods/start-ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-m) 関数と [stop](/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/methods/stop-ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-m) 関数を使用して、開発コンソールからのデバッグ出力をリッスンするタイミングを決定できます。さらに、開発コンソールからキャプチャする出力があるときに呼び出される [IXtfDebugMonitorCallback](/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorCallback/ixtfdebugmonitorcallback-xtfdebugmonitor-xbox-microsoft-t) を定義する必要があります。

## 要件

**ヘッダー:** xtfdebugmonitor.h

**ライブラリ:** xtfdebugmonitor.lib

**サポートされるプラットフォーム:** Windows (XBOX コンソール ツール用)

<a id="ID4ETB" />

## 関連項目

<a id="ID4EVB" />

[XtfDebugMonitor](/reference/tools/xtf/xtfdebugmonitor/xtfdebugmonitor-xbox-microsoft-n)\
[IXtfDebugMonitorClient](/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-t)\
[start](/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/methods/start-ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-m)\
[stop](/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/methods/stop-ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-m)


## Related topics

- [XtfDebugStringCallback](/ja-jp/reference/tools/xtf/xtfapi/functions/xtfdebugstringcallback-xtfapi-xbox-windows-m.md)
- [XtfDebugStringErrorCallback](/ja-jp/reference/tools/xtf/xtfapi/functions/xtfdebugstringerrorcallback-xtfapi-xbox-windows-m.md)
- [XtfCaptureOutputBegin](/ja-jp/reference/tools/xtf/xtfapi/functions/xtfcaptureoutputbegin-xtfapi-xbox-windows-m.md)
- [XtfCaptureOutputEnd](/ja-jp/reference/tools/xtf/xtfapi/functions/xtfcaptureoutputend-xtfapi-xbox-windows-m.md)
- [IXtfDebugMonitorClient::Start Method](/ja-jp/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/methods/start-ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-m.md)
