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

> IXtfDebugMonitorClient::Start Method

# IXtfDebugMonitorClient::Start Method

Starts listening for debug output from the development console.

<a id="syntaxSection" />

## Syntax

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

<a id="ID4EH" />

### Parameters

*dwProcessId*\
Type: DWORD

Identifier of the process.

*dwFlags*\
Type: XTF\_DBGMON\_START\_FLAGS

Flags that specify how to perform the operation.\
This functionality is not fully developed and, so the parameter should take a value of 0.

*pCallback*\
Type: IXtfDebugMonitorCallback \*

Pointer to the [IXtfDebugMonitorCallback](/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorCallback/ixtfdebugmonitorcallback-xtfdebugmonitor-xbox-microsoft-t) to call when the client receives debug output from the development console.

<a id="ID4EQ" />

### Return value

Type: HRESULT

HRESULT success or error code.

<a id="requirements" />

## Requirements

**Header:** xtfdebugmonitor.h

**Library:** xtfdebugmonitor.lib

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

<a id="ID4ENB" />

## Remarks

This function is used to start listening for debug output from a game on a development console. When you are finished listening for debug output call [IXtfDebugMonitorClient::Stop](/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/methods/stop-ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-m) to stop listening for output. If you do not call [IXtfDebugMonitorClient::Stop](/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/methods/stop-ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-m) it may result in resource leakage and an orphaned debugger attachment to the game, this may require a game restart to fix.

## See also

<a id="ID4EPB" />

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


## Related topics

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