This requires Hatchet, if you haven't already set it up for your theme follow these instructions first.
composer require rareloop/lumberjack-var-dumper-server
Once installed, register the Service Provider in config/app.php within your theme:
'providers' => [
...
Rareloop\Lumberjack\VarDumperServer\VarDumperServerServiceProvider::class,
...
],
A new command is added to Hatchet, which you can run with:
php hatchet dump-server
Once running, any calls to dump()
within you theme code will be echo'd out in the console.