> ## 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](/reference/system/dstorage/interfaces/IDStorageFactoryX/methods/idstoragefactoryx_setdebugflags) 方法使用。这些标志控制在请求入队时 DirectStorage 是否执行附加验证。这些验证旨在辅助调试。

## 要求

**头文件：** dstorage\_xs.h

**支持的平台：** XBOX Series 主机

## 另请参阅

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


## Related topics

- [DStorage](/zh-CN/reference/system/dstorage/dstorage_members.md)
- [IDStorageFactoryX::SetDebugFlags](/zh-CN/reference/system/dstorage/interfaces/IDStorageFactoryX/methods/idstoragefactoryx_setdebugflags.md)
- [DSTORAGE_QUEUE_OPTIONS](/zh-CN/reference/system/dstorage/structs/dstorage_queue_options.md)
- [IDStorageQueueX1::EnqueueSetEvent](/zh-CN/reference/system/dstorage/interfaces/IDStorageQueueX1/methods/idstoragequeuex_enqueuesetevent.md)
- [DSTORAGE_PRIORITY](/zh-CN/reference/system/dstorage/enums/dstorage_priority.md)
