1. Go to this page and download the library: Download debugd/debugd-laravel 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/ */
debugd / debugd-laravel example snippets
debugd($user); // dump anything into the trace
debugd()->dump($payload, 'stripe response'); // ...with a label
$rows = debugd()->bench('report', fn () => Report::heavy()); // time it, get the result
debugd()->info('reached checkout', ['step' => 3]);
// run things in parallel (real parallelism under Octane, sequential otherwise),
// each shown as its own span:
[$user, $orders] = array_values(debugd()->concurrently([
'user' => fn () => User::find($id),
'orders' => fn () => Order::recent($id),
]));
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.