> ## 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 接口（接口内容）

> IXtfDebugMonitorCallback Interface

# IXtfDebugMonitorCallback Interface

提供当 XBOX Tools Framework (XTF) 应用发送调试输出时使用的回调。

## 语法

```cpp theme={null}
interface IXtfDebugMonitorCallback : public IUnknown  
```

## 方法

| 方法 | 说明 |
| - | - |
| [OnOutputDebugString](https://devdocs.xbox.com/zh-CN/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorCallback/methods/onoutputdebugstring-ixtfdebugmonitorcallback-xtfdebugmonitor-xbox-microsoft-m.md) | 当 XBOX Tools Framework (XTF) 应用发送调试输出时调用。 |

## 备注

**IXtfDebugMonitorCallback Interface** 决定如何处理从主机读取的调试输出。此行为是在将 **IXtfDebugMonitorCallback** 作为参数传递给 [IXtfDebugMonitorClient::Start](https://devdocs.xbox.com/zh-CN/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/methods/start-ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-m.md) 时确立的。该接口包含 [IXtfDebugMonitorCallback::OnOutputDebugString](https://devdocs.xbox.com/zh-CN/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorCallback/methods/onoutputdebugstring-ixtfdebugmonitorcallback-xtfdebugmonitor-xbox-microsoft-m.md) 方法，该方法定义了在检测到调试输出时如何处理该输出。

## 要求

**头文件：** xtfdebugmonitor.h

**库：** xtfdebugmonitor.lib

**支持的平台：** Windows（适用于 XBOX 主机工具）

## 另请参阅

[XtfDebugMonitor](https://devdocs.xbox.com/zh-CN/reference/tools/xtf/xtfdebugmonitor/xtfdebugmonitor-xbox-microsoft-n)\
[IXtfDebugMonitorClient::Start](https://devdocs.xbox.com/zh-CN/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/methods/start-ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-m.md)\
[IXtfDebugMonitorCallback::OnOutputDebugString](https://devdocs.xbox.com/zh-CN/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorCallback/methods/onoutputdebugstring-ixtfdebugmonitorcallback-xtfdebugmonitor-xbox-microsoft-m.md)


## Related topics

- [IXtfRemoteRunCallback 接口（接口内容）](https://devdocs.xbox.com/zh-CN/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunCallback/interfaces/ixtfremoteruncallback.md)
- [IXtfConfigSettingsCallback（接口内容）](https://devdocs.xbox.com/zh-CN/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConfigSettingsCallback/ixtfconfigsettingscallback.md)
- [IXtfRunningProcessCallback（接口内容）](https://devdocs.xbox.com/zh-CN/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfRunningProcessCallback/ixtfrunningprocesscallback.md)
- [IXtfRemoteRunClient 接口（接口内容）](https://devdocs.xbox.com/zh-CN/reference/tools/xtf/xtfremoterun/classes/IXtfRemoteRunClient/interfaces/ixtfremoterunclient.md)
- [IXtfConsoleControlClient（接口内容）](https://devdocs.xbox.com/zh-CN/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/ixtfconsolecontrolclient.md)
