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

# IDStorageFactoryX::SetDebugFlags

> IDStorageFactoryX::SetDebugFlags

# IDStorageFactoryX::SetDebugFlags

设置用于控制调试层的标志。

## Syntax

```cpp theme={null}
void SetDebugFlags(  
         UINT32 flags  
)  
```

### Parameters

*flags*\
类型：UINT32

一组用于控制调试层的标志。

### Return value

类型：void

## Remarks

此方法设置的标志用于控制在请求入队时 DirectStorage 是否执行额外的验证。这些验证旨在帮助调试。请注意，这些调试标志仅影响可在入队时检测到的错误的行为。作为异步处理请求过程中出现的错误（例如损坏的流或解压缩内容缓冲区大小不匹配），可在这些请求完成后通过 [IDStorageStatusArrayX::GetHResult](/reference/system/dstorage/interfaces/IDStorageStatusArrayX/methods/idstoragestatusarrayx_gethresult) 检测和检索。

[DSTORAGE\_DEBUG](/reference/system/dstorage/enums/dstorage_debug) 枚举定义了 `SetDebugFlags` 使用的标志。

## Requirements

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

**库：** dstorage\_xs.lib

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

## See also

[IDStorageFactoryX](/reference/system/dstorage/interfaces/IDStorageFactoryX/idstoragefactoryx)\
[DStorage](/reference/system/dstorage/dstorage_members)


## Related topics

- [DSTORAGE_DEBUG](/zh-CN/reference/system/dstorage/enums/dstorage_debug.md)
- [IDStorageFactoryX::SetCpuAffinity](/zh-CN/reference/system/dstorage/interfaces/IDStorageFactoryX/methods/idstoragefactoryx_setcpuaffinity.md)
- [IDStorageFactoryX::SetStagingBufferSize](/zh-CN/reference/system/dstorage/interfaces/IDStorageFactoryX/methods/idstoragefactoryx_setstagingbuffersize.md)
- [IDStorageFactoryX](/zh-CN/reference/system/dstorage/interfaces/IDStorageFactoryX/idstoragefactoryx.md)
- [DirectStorage 概述](/zh-CN/build/console-features/storage/directstorage/directstorage-overview.md)
