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

デバッグ レイヤーを制御するために使用するフラグを設定します。

## 構文

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

### パラメーター

*flags*\
Type: UINT32

デバッグ レイヤーを制御するフラグのセット。

### 戻り値

Type: void

## 解説

このメソッドは、リクエストがキューに入れられたときに DirectStorage が追加の検証を実行するかどうかを制御するフラグを設定します。これらの検証はデバッグを支援することを目的としています。これらのデバッグ フラグは、エンキュー時に検出可能なエラーの動作にのみ影響することに注意してください。破損したストリームや圧縮コンテンツのバッファー サイズ不一致など、リクエストの非同期処理の一部として発生するエラーは、それらのリクエストが完了した後、
[IDStorageStatusArrayX::GetHResult](/reference/system/dstorage/interfaces/IDStorageStatusArrayX/methods/idstoragestatusarrayx_gethresult) を通じて検出および取得できます。

[DSTORAGE\_DEBUG](/reference/system/dstorage/enums/dstorage_debug) 列挙型は、`SetDebugFlags` で使用されるフラグを定義しています。

## 要件

**ヘッダー:** dstorage\_xs.h

**ライブラリ:** dstorage\_xs.lib

**サポートされているプラットフォーム:** XBOX Series 本体

## 関連項目

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


## Related topics

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