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

# IXtfDebugMonitorClient::Start 方法

> IXtfDebugMonitorClient::Start 方法

# IXtfDebugMonitorClient::Start 方法

開始接聽來自開發主機的偵錯輸出。

<a id="syntaxSection" />

## 語法

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

<a id="ID4EH" />

### 參數

*dwProcessId*\
類型：DWORD

處理序的識別碼。

*dwFlags*\
類型：XTF\_DBGMON\_START\_FLAGS

指定如何執行作業的旗標。\
此功能尚未完全開發，因此此參數的值應為 0。

*pCallback*\
類型：IXtfDebugMonitorCallback \*

指向 [IXtfDebugMonitorCallback](/zh-TW/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorCallback/ixtfdebugmonitorcallback-xtfdebugmonitor-xbox-microsoft-t) 的指標，當用戶端從開發主機接收到偵錯輸出時就會呼叫它。

<a id="ID4EQ" />

### 傳回值

類型：HRESULT

HRESULT 成功或錯誤碼。

<a id="requirements" />

## 需求

**標頭：** xtfdebugmonitor.h

**程式庫：** xtfdebugmonitor.lib

**支援的平台：** Windows (適用於 XBOX 主機工具)

<a id="ID4ENB" />

## 備註

此函式用來開始接聽來自開發主機上遊戲的偵錯輸出。完成接聽偵錯輸出後，請呼叫 [IXtfDebugMonitorClient::Stop](/zh-TW/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/methods/stop-ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-m) 以停止接聽輸出。如果您未呼叫 [IXtfDebugMonitorClient::Stop](/zh-TW/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/methods/stop-ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-m)，可能會導致資源流失，並使偵錯工具與遊戲之間留下孤立的附加連結，這可能需要重新啟動遊戲才能修正。

## 另請參閱

<a id="ID4EPB" />

[IXtfDebugMonitorClient 介面](/zh-TW/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-t)\
[XtfDebugMonitor](/zh-TW/reference/tools/xtf/xtfdebugmonitor/xtfdebugmonitor-xbox-microsoft-n)\
[IXtfDebugMonitorClient::Stop](/zh-TW/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/methods/stop-ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-m)


## Related topics

- [IXtfDebugMonitorClient::Stop 方法](/zh-TW/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/methods/stop-ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-m.md)
- [IXtfDebugMonitorCallback::OnOutputDebugString 方法](/zh-TW/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorCallback/methods/onoutputdebugstring-ixtfdebugmonitorcallback-xtfdebugmonitor-xbox-microsoft-m.md)
- [XtfCreateDebugMonitorClient](/zh-TW/reference/tools/xtf/xtfdebugmonitor/methods/xtfcreatedebugmonitorclient-xtfdebugmonitor-xbox-microsoft-m.md)
- [XtfCaptureOutputBegin](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfcaptureoutputbegin-xtfapi-xbox-windows-m.md)
- [XtfCaptureOutputEnd](/zh-TW/reference/tools/xtf/xtfapi/functions/xtfcaptureoutputend-xtfapi-xbox-windows-m.md)
