lav45 / debug

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

debug

Example

// Displays the trace to the function call location
debug();

// Displays the contents of a single variable
debug($_POST);

// Displays the contents of multiple variables
debug($_GET, $_POST, ...);

Connection

Nginx:

fastcgi_param PHP_VALUE "auto_prepend_file=/path_to/debug.php";

Apache:

php_value auto_prepend_file "/path_to/debug.php"

Php CLI:

mkdir -p ~/.php.d
echo 'auto_prepend_file=/path_to/debug.php' >> ~/.php.d/php.ini
echo 'export PHP_INI_SCAN_DIR=:~/.php.d' >> ~/.bashrc

About


Languages

Language:PHP 100.0%