PHP Logs in native console Firefox Developer -
i highly prefer firefox developer inspector firebug one.
but possible display php logs in native js console ?
thanks :)
i installed chrome logger ( github | website ) chrome php accomplish in chrome since firefox 50+ broke firephp. learned firefox's web console has been supporting chrome logger since v43 (https://developer.mozilla.org/en-us/docs/tools/web_console/console_messages#server).
so in short, yes, can log php variables firefox web console using chrome php. it's simple:
- download latest chrome php library: https://github.com/ccampbell/chromephp
- include in project (
include 'chromephp.php';
) - log in php script (
chromephp::log($_myarray);
) - open firefox web console , turn on server tab (https://developer.mozilla.org/en-us/docs/tools/web_console/console_messages#filtering_by_category)
hope helps. procrastinated upgrading firefox few years before discovering newer versions had support this.
Comments
Post a Comment