Make --debug option revertible internally

Use an override flag instead of replacing the actual config values.
This allows to disable and enable the --debug option at runtime more
easily.