PHP code example of redcatphp / debug
1. Go to this page and download the library: Download redcatphp/debug library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
redcatphp / debug example snippets
$errorHandler = new RedCat\Debug\ErrorHandler;
$errorHandler->handle();
use Debug\Vars;
dbug($var); //equivalent of Var::debug($var);
debug($var); //equivalent of Var::debug(_html$var);
dbugs($var,$var2); //equivalent of Var::dbugs($var,$var2);
debugs($var,$var2); //equivalent of Var::debugs($var,$var2);