FireBug – Working With Xdebug

In this project, it was decided to disable Xdebug overlay for var_dumps. This makes it easier to read the entire output of debugger() without having to scroll too much left and right. We’ve made it simple to re-enable with one line of code if you’d like to work with Xdebug. You just need to place this code before you render the FireBug Panel.

<?php
$fireBug = \UA1Labs\Fire\Bug::get();
$debuggerPanel = $fireBug->getPanel(\UA1Labs\Fire\Bug\Panel\Debugger::ID);
$debuggerPanel->enableXDebugOverlay();
$fireBug->render();

Leave a comment

Leave a Reply