if does not work at all it would be cool to raise to indicate it to the user rather than disabling debug in his back i think you are just changing the default  not the actual value so you might still run the app with debug enabled and workers  