Disable _DEBUG_MODE if not enabled on the fly.
Merge branch 'refs/heads/master' into 2.2.x-legacy