How to debug PHP from Chrome

May 06, 2016 14:16

Do you wish to debug your PHP source comfortable from favorite web browser?
Use php-console from barbushin :)
Application is consistent of two parts:
1. Google Chrome extention.
2. Server-side framework.
For start using php-console you need install extention for Google Chrome, then you must to save the framework to server.
At finally include simple code and get fun :)
My makeshift code for LJ post:

require_once( __DIR__ . '/php-console/src/PhpConsole/__autoload.php');
$result = return_var_dump();
$handler = PhpConsole\Handler::getInstance();
$handler->start();
$handler->debug($result, 'DEBUG MESSAGE');          
function return_var_dump(){
$args=func_get_args();
ob_start();
call_user_func_array('var_dump',$_GET);
return ob_get_clean();
};
?>

You get something like this!



See you!
Previous post
Up