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

Called when an XBOX Tools Framework (XTF) app sends debug output.

<a id="syntaxSection" />

## Syntax

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

<a id="ID4EH" />

### Parameters

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

Pointer that receives an [XTF\_OUTPUT\_DEBUG\_STRING\_DATA](/reference/tools/xtf/xtfdebugmonitor/structures/XTF_OUTPUT_DEBUG_STRING_DATA-xtfdebugmonitor-xbox-microsoft-t) structure that contains the debug string data.

<a id="ID4EQ" />

### Return value

Type: HRESULT

HRESULT success or error code.

<a id="requirements" />

## Remarks

This title-defined function handles the debug strings produced by games on the dev console. This function determines what happens to each debug string detected after [IXtfDebugMonitorClient::Start](/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/methods/start-ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-m) is called. The title defined method must match the return value and parameters of the **IXtfDebugMonitorCallback::OnOutputDebugString** method.

## Requirements

**Header:** xtfdebugmonitor.h

**Library:** xtfdebugmonitor.lib

**Supported platforms:** Windows (for XBOX console tools)

<a id="ID4EHB" />

## See also

<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](/reference/tools/xtf/xtfdebugmonitor/structures/XTF_OUTPUT_DEBUG_STRING_DATA-xtfdebugmonitor-xbox-microsoft-t.md)
- [IXtfDebugMonitorClient::Start Method](/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/methods/start-ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-m.md)
- [XtfCreateDebugMonitorClient](/reference/tools/xtf/xtfdebugmonitor/methods/xtfcreatedebugmonitorclient-xtfdebugmonitor-xbox-microsoft-m.md)
- [XtfDebugStringCallback](/reference/tools/xtf/xtfapi/functions/xtfdebugstringcallback-xtfapi-xbox-windows-m.md)
- [XtfDebugStringErrorCallback](/reference/tools/xtf/xtfapi/functions/xtfdebugstringerrorcallback-xtfapi-xbox-windows-m.md)
