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

# DSTORAGE_DEBUG

> DSTORAGE_DEBUG

# DSTORAGE\_DEBUG

控制 DirectStorage 偵錯層的旗標。

## 語法

```cpp theme={null}
enum DSTORAGE_DEBUG    
{  
    DSTORAGE_DEBUG_NONE = 0x00,  
    DSTORAGE_DEBUG_SHOW_ERRORS = 0x01,  
    DSTORAGE_DEBUG_BREAK_ON_ERROR = 0x02,  
    DSTORAGE_DEBUG_RECORD_OBJECT_NAMES  = 0x04
}  
```

## 常數

| 常數 | 描述 |
| - | - |
| DSTORAGE\_DEBUG\_NONE | 已停用 DirectStorage 偵錯層。 |
| DSTORAGE\_DEBUG\_SHOW\_ERRORS | 將錯誤資訊列印到偵錯工具。 |
| DSTORAGE\_DEBUG\_BREAK\_ON\_ERROR | 每次偵測到錯誤時觸發偵錯中斷。 |
| DSTORAGE\_DEBUG\_RECORD\_OBJECT\_NAMES | 在 ETW 事件中包含 `IDStorageStatusArrayX` 和 `ID3D12Fence` 名稱。 |

## 備註

此列舉由 [IDStorageFactoryX::SetDebugFlags](/zh-TW/reference/system/dstorage/interfaces/IDStorageFactoryX/methods/idstoragefactoryx_setdebugflags) 方法使用。這些旗標控制 DirectStorage 是否在要求加入佇列時執行額外的驗證。這些驗證旨在協助偵錯。

## 需求

**標頭：** dstorage\_xs.h

**支援的平台：** XBOX Series 主機

## 另請參閱

[IDStorageFactoryX::SetDebugFlags](/zh-TW/reference/system/dstorage/interfaces/IDStorageFactoryX/methods/idstoragefactoryx_setdebugflags)\
[DStorage](/zh-TW/reference/system/dstorage/dstorage_members)


## Related topics

- [DSTORAGE_DEBUG](/reference/system/dstorage/enums/dstorage_debug.md)
- [DStorage](/reference/system/dstorage/dstorage_members.md)
- [IDStorageFactoryX::SetDebugFlags](/reference/system/dstorage/interfaces/IDStorageFactoryX/methods/idstoragefactoryx_setdebugflags.md)
