Implement debug var in app.php