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

# Start

> IXtfDebugMonitorClient::Start Method

# IXtfDebugMonitorClient::Start Method

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

## 構文

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

### パラメーター

*dwProcessId*\
型: DWORD

プロセスの識別子です。

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

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

*pCallback*\
型: IXtfDebugMonitorCallback \*

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

### 戻り値

型: HRESULT

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

## 要件

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

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

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

## 解説

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

## 関連項目

[IXtfDebugMonitorClient Interface](https://docs.xbox.com/ja-jp/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-t.md)\
[XtfDebugMonitor](https://docs.xbox.com/ja-jp/reference/tools/xtf/xtfdebugmonitor/xtfdebugmonitor-xbox-microsoft-n.md)\
[IXtfDebugMonitorClient::Stop](https://docs.xbox.com/ja-jp/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/methods/stop-ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-m.md)


## Related topics

- [Start Experiment](https://docs.xbox.com/api-reference/experimentation/start-experiment.md)
- [Start Purchase](https://docs.xbox.com/api-reference/player-item-management/start-purchase.md)
- [client_session_start](https://docs.xbox.com/ja-jp/services/playfab/api-references/events/Session/client-session-start.md)
- [experiment_start_requested](https://docs.xbox.com/ja-jp/services/playfab/api-references/events/Experimentation/experiment-start-requested.md)
- [start_processing_state_changes](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_start_processing_state_changes.md)
