Import
DebugEnvironment is an addon, and must be imported explicitly, see Installation#Addons.
import { DebugEnvironment } from 'three/addons/environments/DebugEnvironment.js';
Methods
.dispose()
Frees internal resources. This method should be called when the environment is no longer required.