PHP code example of cyber-duck / fluent-debug

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

    

cyber-duck / fluent-debug example snippets


Finder::create()
->files()
->name('*.php')
->in($configPath) 


Finder::create()
->files()
->name('*.php')

 $a = Finder::create()
 ->files()
 ->name('*.php')
 
 //put breakpoint on this line:
 $a->in($configPath) 
 
 

Finder::create()
->files()
->name('*.php')
->debugBreak()
->in($configPath) 


Finder::create()
->files()
->name('*.php')
->debugBreakIf(2 === $a)
->in($configPath) 


Finder::create()
->files()
->name('*.php')
->debugBreakIf(function(){return app()->isRunningUnitTests();))
->in($configPath)