Enabling debug with a cookie

Submitted by davidmorales - 9 years ago

If you are using Web Developer Extension in Firefox (or similar), you can enable the debug mode creating a cookie. Just create a cookie called 'debug' with value '1', and path '/', then open up your app.php and edit the debug option with the following:

'debug' => (!empty($_COOKIE['debug']) && $_COOKIE['debug']==1) ? true : false,