apigen: option --debug enables switches to development mode

The debug enabling must be done at very first application code.
The only place for debug mode detection for the rest of the application is the Configurator's debug mode.