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

# XtfDebugStringCallback

> XtfDebugStringCallback

# XtfDebugStringCallback

[XtfCaptureOutputBegin](/reference/tools/xtf/xtfapi/functions/xtfcaptureoutputbegin-xtfapi-xbox-windows-m) によってキャプチャされた出力デバッグ文字列ごとに呼び出されるコールバックです。

<a id="syntaxSection" />

## Syntax

```cpp theme={null}
void *XtfDebugStringCallback(
         UINT32 processId,
         UINT32 threadId,
         UINT16 cpuGroup,
         UINT16 cpuIndex,
         UINT32 level,
         UINT32 componentId,
         UINT32 sequenceNumber,
         UINT64 interruptTime,
         UINT32 flags,
         PCWSTR sourceIdentifier,
         PCWSTR messageData,
         PVOID context
)  
```

<a id="parametersSection" />

### Parameters

*processId*\
型: UINT32

\[in] このデバッグ文字列を出力したプロセスの ID です。

*threadId*\
型: UINT32

\[in] タイトルのスレッドの ID です。

*cpuGroup*\
型: UINT16

\[in] タイトルの CPU グループです。

*cpuIndex*\
型: UINT16

\[in] タイトルの CPU インデックスです。

*level*\
型: UINT32

\[in] 内部使用のために予約されています。

*componentId*\
型: UINT32

\[in] 内部使用のために予約されています。

*sequenceNumber*\
型: UINT32

\[in] デバッグ文字列のシーケンス番号です。まれにデバッグ文字列の順序が入れ替わって返される場合があり、このパラメーターの値を用いてデバッグ出力の順序を判別できます。

*interruptTime*\
型: UINT64

\[in] 内部使用のために予約されています。

*flags*\
型: UINT32

\[in] 内部使用のために予約されています。

*sourceIdentifier*\
型: PCWSTR

\[in] デバッグ文字列のソースです。このパラメーターは "Title" または "System" のいずれかに設定されます。

*messageData*\
型: PCWSTR

\[in] デバッグ出力文字列です。

*context*\
型: PVOID

\[in, optional] [XtfCaptureOutputBegin](/reference/tools/xtf/xtfapi/functions/xtfcaptureoutputbegin-xtfapi-xbox-windows-m) に渡されたコンテキスト オブジェクトへのポインターです。

<a id="retvalSection" />

### Return value

なし。

<a id="remarksSection" />

## Remarks

このコールバックは、キャプチャ セッション中にキャプチャされる出力デバッグ文字列ごとに `XtfCaptureOutputBegin` 関数によって呼び出されます。開発機からの一般的なデバッグ出力をキャプチャするには、このコールバック関数と [XtfDebugStringErrorCallback](/reference/tools/xtf/xtfapi/functions/xtfdebugstringerrorcallback-xtfapi-xbox-windows-m) コールバック関数を併用します。開発機の特定のプロセス ID からのデバッグ出力を監視する場合は、デバッグ モニター クライアントを使用してください。デバッグ モニター クライアントの使用方法の詳細については、[XtfCreateDebugMonitorClient](/reference/tools/xtf/xtfdebugmonitor/methods/xtfcreatedebugmonitorclient-xtfdebugmonitor-xbox-microsoft-m) を参照してください。

<a id="requirementsSection" />

## Requirements

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

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

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

## See also

[XTF Transport Errors (NDA topic)](/tools/tools-console/commandlinetools/xtf-transport-errors)\
[Additional Xtf APIs](/reference/tools/xtf/xtfapi/atoc-xtfapi)


## Related topics

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