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

# IXtfDebugMonitorCallback::OnOutputDebugString Method

> IXtfDebugMonitorCallback::OnOutputDebugString Method

# IXtfDebugMonitorCallback::OnOutputDebugString Method

XBOX Tools Framework (XTF) アプリがデバッグ出力を送信したときに呼び出されます。

<a id="syntaxSection" />

## 構文

```cpp theme={null}
public:
HRESULT OnOutputDebugString(
         const XTF_OUTPUT_DEBUG_STRING_DATA *pData
)  
```

<a id="ID4EH" />

### パラメーター

*pData*\
型: XTF\_OUTPUT\_DEBUG\_STRING\_DATA \*

デバッグ文字列データを含む [XTF\_OUTPUT\_DEBUG\_STRING\_DATA](/reference/tools/xtf/xtfdebugmonitor/structures/XTF_OUTPUT_DEBUG_STRING_DATA-xtfdebugmonitor-xbox-microsoft-t) 構造体を受け取るポインターです。

<a id="ID4EQ" />

### 戻り値

型: HRESULT

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

<a id="requirements" />

## 解説

このタイトル定義の関数は、開発コンソール上のゲームが生成するデバッグ文字列を処理します。この関数は、[IXtfDebugMonitorClient::Start](/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/methods/start-ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-m) が呼び出された後に検出される各デバッグ文字列に対して何が行われるかを決定します。タイトルで定義するメソッドは、**IXtfDebugMonitorCallback::OnOutputDebugString** メソッドの戻り値およびパラメーターと一致している必要があります。

## 要件

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

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

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

<a id="ID4EHB" />

## 関連項目

<a id="ID4EJB" />

[IXtfDebugMonitorCallback Interface](/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorCallback/ixtfdebugmonitorcallback-xtfdebugmonitor-xbox-microsoft-t)\
[XtfDebugMonitor](/reference/tools/xtf/xtfdebugmonitor/xtfdebugmonitor-xbox-microsoft-n)\
[IXtfDebugMonitorCallback](/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorCallback/ixtfdebugmonitorcallback-xtfdebugmonitor-xbox-microsoft-t)


## Related topics

- [XTF_OUTPUT_DEBUG_STRING_DATA structure](/ja-jp/reference/tools/xtf/xtfdebugmonitor/structures/XTF_OUTPUT_DEBUG_STRING_DATA-xtfdebugmonitor-xbox-microsoft-t.md)
- [IXtfDebugMonitorClient::Start Method](/ja-jp/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/methods/start-ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-m.md)
- [XtfCreateDebugMonitorClient](/ja-jp/reference/tools/xtf/xtfdebugmonitor/methods/xtfcreatedebugmonitorclient-xtfdebugmonitor-xbox-microsoft-m.md)
- [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)
