Enable debug drawing only conditionally