"as early as possible" is vague. The fact is that every parameters (debug is not alone) should be defined before initializing any service ; that means before calling the `boot` method.