Added application debug setting

By adding the applications debug setting it's easier to manage this setting from a single file.