Answers for "debug application in core php"

PHP
1

how to debug in php

ini_set('display_errors', 'On');
error_reporting(E_ALL);
Posted by: Guest on June-16-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

Code answers related to "debug application in core php"

Browse Popular Code Answers by Language