PHP code example of brannonh / php-debug

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

    

brannonh / php-debug example snippets


// Instantiate Debug.
$debug = new Debug;

// Save / modify data.
$debug->set('hello', 'world');
$debug->set('counter', 0);
$debug->increase('counter');

// Save data to the log file.
$debug->log_data('hello');
$debug->log_data('counter');