> ## 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.

# IXtfDebugMonitorClient::Start Method

> IXtfDebugMonitorClient::Start Method

# IXtfDebugMonitorClient::Start Method

開発コンソールからのデバッグ出力のリッスンを開始します。

<a id="syntaxSection" />

## 構文

```cpp theme={null}
public:
HRESULT Start(
         DWORD dwProcessId,
         XTF_DBGMON_START_FLAGS dwFlags,
         IXtfDebugMonitorCallback *pCallback
)  
```

<a id="ID4EH" />

### パラメーター

*dwProcessId*\
型: DWORD

プロセスの識別子です。

*dwFlags*\
型: XTF\_DBGMON\_START\_FLAGS

操作の実行方法を指定するフラグです。\
この機能はまだ十分に開発されていないため、パラメーターの値は 0 にする必要があります。

*pCallback*\
型: IXtfDebugMonitorCallback \*

クライアントが開発コンソールからデバッグ出力を受信したときに呼び出す [IXtfDebugMonitorCallback](/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorCallback/ixtfdebugmonitorcallback-xtfdebugmonitor-xbox-microsoft-t) へのポインターです。

<a id="ID4EQ" />

### 戻り値

型: HRESULT

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

<a id="requirements" />

## 要件

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

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

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

<a id="ID4ENB" />

## 解説

この関数は、開発コンソール上のゲームからのデバッグ出力のリッスンを開始するために使用されます。デバッグ出力のリッスンを終えたら、[IXtfDebugMonitorClient::Stop](/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/methods/stop-ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-m) を呼び出して出力のリッスンを停止してください。[IXtfDebugMonitorClient::Stop](/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/methods/stop-ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-m) を呼び出さないと、リソースのリークやゲームに対する孤立したデバッガー アタッチが発生する可能性があり、修復のためにゲームの再起動が必要になる場合があります。

## 関連項目

<a id="ID4EPB" />

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


## Related topics

- [IXtfDebugMonitorClient::Stop Method](/ja-jp/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/methods/stop-ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-m.md)
- [XtfCreateDebugMonitorClient](/ja-jp/reference/tools/xtf/xtfdebugmonitor/methods/xtfcreatedebugmonitorclient-xtfdebugmonitor-xbox-microsoft-m.md)
- [IXtfDebugMonitorCallback::OnOutputDebugString Method](/ja-jp/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorCallback/methods/onoutputdebugstring-ixtfdebugmonitorcallback-xtfdebugmonitor-xbox-microsoft-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)
