This property is not retroactive. Modifying it won't affect devices which have already been created.
For any debug level other than None, Win2D will enable the Direct3D debug layer.
Ensure that the Direct3D debug layer is available in environments where you test apps with CanvasDebugLevel options other than None.
On Windows 10, the debug layer is distributed as an optional Windows feature.