Page 1 of 1

Logging and debugging on server side with Chrome Tools!

Posted: Sat Jun 22, 2013 1:59 am
by Ark
Chrome Logger a really cool and useful tool, you can log data from server side to Chrome's console and view it like a normal object/array as if it was on Javascript. Personally for me debugging with php was really a headeche, checking large arrays on php made alot of mess. But with this is much simple.

It supports PHP, Python, Node.js and others.

You need to install a chrome plugin and then include a file e.g.

Code: Select all

<?php
include 'ChromePhp.php';
ChromePhp::log('Hello console!');
ChromePhp::log($_SERVER);
ChromePhp::warn('something went wrong!');
<?
Link: http://craig.is/writing/chrome-logger

Enjoy !! :p

Re: Logging and debugging on server side with Chrome Tools!

Posted: Sat Jun 22, 2013 8:26 am
by Jackolantern
Nice! And yeah, PHP debugging is kind of a mess. Even the IDEs that claim they have it typically require you to download an external PHP debugger and rig it all up yourself, so in the end, all they are offering you is the buttons to press to make it work lol. Very cool if this really allows full, real debugging of PHP on Chrome or anywhere haha.