PHP code example of kuria / debug

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

    

kuria / debug example snippets



   

   use Kuria\Debug\Dumper


   

   use Kuria\Debug\Dumper


   

   use Kuria\Debug\Dumper


   

   use Kuria\Debug\Dumper


   

   use Kuria\Debug\Output


   

   use Kuria\Debug\Output


   

   use Kuria\Debug\Output


   

   use Kuria\Debug\Error


   

   use Kuria\Debug\Exception


   

   echo Exception::render($runtimeException, false, true)


   

   use Kuria\Debug\Exception


   

   use Kuria\Debug\Exception


   

   use Kuria\Debug\Exception


   

   try {
       // some code which may throw an exception
       throw new \Exception('Initial exception');
   } catch (\Exception $exception) {
       // handle the exception
       try {
           // some elaborate exception-handling code which may also throw an exception
           throw new \Exception('Exception-handler exception');
       } catch (\Exception $additionalException) {
           // the exception-handling code has crashed

           // join exception chains
           Exception::joinChains($exception, $additionalException)