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

Flags that control the DirectStorage debug layer.

## Syntax

```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
}  
```

## Constants

| Constant                               | Description                                                            |
| -------------------------------------- | ---------------------------------------------------------------------- |
| DSTORAGE\_DEBUG\_NONE                  | DirectStorage debug layer is disabled.                                 |
| DSTORAGE\_DEBUG\_SHOW\_ERRORS          | Print error information to a debugger.                                 |
| DSTORAGE\_DEBUG\_BREAK\_ON\_ERROR      | Trigger a debug break each time an error is detected.                  |
| DSTORAGE\_DEBUG\_RECORD\_OBJECT\_NAMES | Include `IDStorageStatusArrayX` and `ID3D12Fence` names in ETW events. |

## Remarks

This enumeration is used by the [IDStorageFactoryX::SetDebugFlags](/reference/system/dstorage/interfaces/IDStorageFactoryX/methods/idstoragefactoryx_setdebugflags) method. The flags control whether DirectStorage performs additional validations when requests are enqueued. The validations are intended to aid debugging.

## Requirements

**Header:** dstorage\_xs.h

**Supported platforms:** XBOX Series consoles

## See also

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