

The File/Directory should already be preconfigured. If you are not using Vagrant, please skip to step 7.Ĭlick Use path mappings to configure file location settings. In the Servers dialog, click the + to add a new server configuration.Ħ. next to Servers: so we can configure a server.Ĥ. Click the + (top left) and select PHP Remote Debug from the drop-down to add a new config.Īt this point, you should have a window that looks like this:ģ. This brings up the Run/Debug Configurations window.Ģ. Don’t be alarmed by the number of steps it takes to configure I just wanted to be as detailed as possible.ġ. In PHPStorm, go to Run > Edit Configurations. In order for the PHPStorm debugger to work, it needs to be configured to work with Xdebug. If you’re using something else like MAMP or XAMP, you’ll need to make sure you have Xdebug installed and activated. I currently use Vagrant for my development environment which comes prepackaged with Xdebug. The PHPStorm debugger will make you never want to use a var_dump() ever again! Despite how it may appear, it’s very simple to setup, and once you do it a time or two, it’s something you can do in just a few short minutes.

One of the biggest reasons it is underused, even by developers who are already using PHPStorm, is because setting it up can be a confusing process if you’ve never done it before. I’ve only just recently started to learn about it and use it. In my opinion, one of the most overlooked and underused features of PHPStorm is its debugger. In this post, we are going to look at getting the PHPStorm debugger setup to work with Xdebug and then test it to make sure it’s working! In a previous post, I wrote about how awesome PHPStorm is in the context of being a front-end developer.
