Answers for "how to do debugging in php"

PHP
6

how to debug php

phpinfo();
Posted by: Guest on February-20-2020
1

php best debugging functions

I find it very useful to print out to the browsers console instead of just var_dumping:

function console_log( $data ){
  echo '<script>';
  echo 'console.log('. json_encode( $data ) .')';
  echo '</script>';
}

Usage:
$myvar = array(1,2,3);
console_log( $myvar ); // [1,2,3]
Posted by: Guest on October-22-2020
1

Best debugging tools for php

Xdebug, PHP DebugBar , MacGDBp, Kint, Whoops, Krumo, Pinba, Gubed PHP Debugger, DBG, and PHP_Dyn are some best debugging tools for php.
Posted by: Guest on November-10-2020

Browse Popular Code Answers by Language