
You don't need to install or set up extra software. The "dump and die" approach has a lot of advantages. PHP developers that don't use Xdebug for debugging are amateurs.- Derick Rethans June 20, 2020Ī lot of people, including myself, strongly disagree with Derick on this one. When you execute your code, these dump statements allow you to see the contents of variables and discover which parts are being executed.Ī few months ago the author of Xdebug tweeted this controversial statement: To find bugs, you'd put var_dump or dump calls in your code. The second way of debugging could be called the "dump and die" approach. Though the recently released v3 of Xdebug contains improvements on both fronts, it can still be daunting to set up.

It can be hard to install, and it potentially has a significant negative impact on your code's performance. There are a couple of drawbacks, however. Created by Derick Rethans, this incredibly powerful PHP extension allows you to pause the code, set breakpoints, inspect, and change any variable. When debugging in PHP, you can choose between two approaches.įirst up is Xdebug. If you just want to know what Ray is, head to the Ray homepage. In this blog post, I'd like to share why and how we've built Ray. Ray is available for macOS, Windows and Linux.

It has a lot of features that help you find and fix bugs faster. Ray is a dedicated window to send dumped values to. I'm proud to announce the immediate release of Ray, a desktop app that vastly improves your debugging experience.
