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

# SetDebugFlagsX (XBOX One 系列)

> 設定偵錯選項。

設定偵錯選項。

## 語法

```cpp theme={null}
void SetDebugFlagsX(  
         D3D12XBOX_DEBUG_FLAGS Flags  
)  
```

### 參數

*Flags*   \_In\_\
類型：[D3D12XBOX\_DEBUG\_FLAGS](/zh-TW/reference/graphics/d3d12_x/enums/d3d12xbox_debug_flags)

指定要設定之偵錯選項的旗標，以 **D3D12XBOX\_DEBUG\_FLAGS** 列舉常數的位元 OR 組合表示。

### 傳回值

類型：void

## 備註

若要設定用來偵錯處理序的選項，請呼叫 [SetProcessDebugFlags](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12debug/methods/id3d12debug_setprocessdebugflags)。

若要啟用偵錯層，請呼叫 [EnableDebugLayer](https://learn.microsoft.com/en-us/windows/win32/api/d3d12sdklayers/nf-d3d12sdklayers-id3d12debug-enabledebuglayer)。

## 需求

**標頭：** d3d12\_x.h

**程式庫：** d3d12\_x.lib

**支援的平台：** XBOX One 系列

## 另請參閱

[ID3D12Device](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12device/id3d12device)


## Related topics

- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [IDStorageFactoryX::SetDebugFlags](/zh-TW/reference/system/dstorage/interfaces/IDStorageFactoryX/methods/idstoragefactoryx_setdebugflags.md)
- [DSTORAGE_DEBUG](/zh-TW/reference/system/dstorage/enums/dstorage_debug.md)
- [GetCreationFlags](/zh-TW/reference/graphics/d3d12/interfaces/id3d12fence1/methods/id3d12fence1_getcreationflags_public.md)
- [XGameStreamingVideoFlags](/zh-TW/reference/system/xgamestreaming/enums/xgamestreamingvideoflags.md)
