/Engine/Plugins/Runtime/XRBase/Source/XRBase/Public/DefaultStereoLayers.h
If true the debug layers are copied to the spectator screen, because they do not naturally end up on the spectator screen as part of the 3d view.
virtual bool ShouldCopyDebugLayersToSpectatorScreen() const