📜 ⬆️ ⬇️

Revitalize FirePhp in Firefox

One day, with the update of Firefox, my favorite Firebug plugin was deactivated. The reason for this was the integration of Firebug into the Firefox console. All this is very good, except for the fact that my second favorite plug-in FirePHP stopped working, its capabilities were written here and here .


I was a little upset and had already thought of remaking my projects for something new, but I decided to look at the small source code for FirePHP. And it turned out that the new Firefox console supports the Chrome Logger protocol, so with minor changes I made my own version of FirePHP , which runs by default in Firefox and Chrome, and of course using Composer .


require __DIR__ . '/vendor/autoload.php'; FB::log('This FirePHP for Firefox 51+'); $myclass = new stdClass(); $myclass->first = "First"; $myclass->second = "Second"; FB::info($myclass); FB::table($myclass); fb($myclass); 

Result


image


→ Download here


')

Source: https://habr.com/ru/post/322654/


All Articles