Using global var to enable debug

Using `$app['debug']` to globally enable debug mode into the Application