These days I’ve been coding some commands to handle a newsletter with a work queue, so I needed the XDebug’s benefits to debug the commands. In a previous post I published the talk I did in Symfony VLC about the goodies of XDebug, but it lacked a part about debugging php scripts.
I usually use a dev server with Vagrant and provisioned with Puppet as dev environment. To get the basic configuration of the box I use Puphpet. Then I will explain what I did to use XDebug in this environment, that it’s pretty straight forward:
- Configure XDebug to enable the profiler
- Configure console’s environment