Articles › Debugging
TAG ARCHIVE

Everything on Debugging.

9 articles tagged Debugging, sorted newest first.

livewire

wire:key and the Row That Kept the Wrong Data

A deleted row leaves its checkbox ticked on the wrong invoice. No error, no log line, not reproducible on refresh. Here is what Livewire's morph actually did, and the one attribute that stops it guessing.

11 min read →
php

Enums That Explain Themselves: __debugInfo() in PHP 8.6

Dumping a status enum has always shown you name and value and nothing you actually wanted. PHP 8.6 lets enums declare __debugInfo(), and one method covers var_dump, dd() and Ray.

7 min read →
php

Syntax Error, Line 1: PHP 8.6 Finally Tells You Where Your JSON Broke

PHP 8.6 adds the line and column of the failure to every JSON error message. Here is how to wire that into a Laravel app so bad webhooks diagnose themselves.

8 min read →
php

Who Owns the Error Handler? PHP 8.5's get_error_handler() and get_exception_handler()

PHP 8.5 finally lets you read the current error and exception handler without setting one first. Here is how to use it to find whatever is swallowing your exceptions.

11 min read →
php

Redact Secrets from Stack Traces with PHP's #[\SensitiveParameter]

PHP prints every argument in a stack trace, so one thrown exception can dump a plaintext password into Sentry. One attribute fixes it.

6 min read →
debugging

Debug Livewire and Eloquent Faster with Spatie Ray

Stop halting requests with dd() and scribbling over pages with dump(). Spatie Ray sends Laravel debug output to a desktop app so you can watch queries, events and Livewire state live.

7 min read →
php

Debug Faster with PHP 8.5 Fatal Error Backtraces

Before 8.5, a fatal timeout or out-of-memory error gave you one line and no path. PHP 8.5 prints the full stack trace by default — here's how it works.

6 min read →
laravel

Tail Laravel Logs in Real Time with Pail (Filters, Levels, and Users)

Stop scrolling storage/logs/laravel.log. Pail gives you a filtered, driver-agnostic live log stream right in your terminal.

6 min read →
laravel

Laravel Telescope vs Debugbar vs Pulse: Which Monitoring Tool When

Laravel ships three monitoring tools and most teams install all three without knowing which does what. Here's when to reach for each one.

7 min read →