DEV Community

Discussion on: PHP - 'dump' those debug statements!

Collapse
 
nikoheikkila profile image
Niko Heikkilä

I agree with not using var_dump(). Every PHP developer should be using XDebug as an interactive debugger. Works great both on PHPStorm and VS Code.

Although working with Laravel I often resort to using dump() and dd() since they provide a lot of useful information fast. Having a good unit test coverage will also reveal secret dumps since they get printed on the standard output.