PHP code example of pa-ulander / debug

1. Go to this page and download the library: Download pa-ulander/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/ */

    

pa-ulander / debug example snippets


new \debug\debug($some_thing_to_debug); // logs to screen

new \debug\debug($some_thing_to_debug, 1); // logs to file

new \debug\debug($some_thing_to_debug, 2); // logs to file with backtrace