Revision: 52383
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 21, 2011 02:29 by florent
Initial Code
To make things even easier, I put this inside one function in my functions.php so it helps me a lot: 1 <?php 2 function debug($var) { 3 if ( ! is_string($var) ) { 4 echo "<pre>"; 5 print_r($var); 6 echo "</pre>"; 7 } else { 8 echo "DEBUG: ".$var; 9 } 10 } 11 ?>
Initial URL
Initial Description
Initial Title
Know what’s going on with debug() function
Initial Tags
debug, wordpress
Initial Language
PHP