# Setting up PhpStorm + Xdebug with Trellis [walkthrough]

**URL:** https://discourse.roots.io/t/setting-up-phpstorm-xdebug-with-trellis-walkthrough/7506
**Category:** trellis
**Created:** 2016-08-30T03:31:12Z
**Posts:** 5

## Post 1 by @smutek — 2016-08-30T03:31:12Z

I had been having a hard time getting Xdebug going in Trellis with PhpStorm’s debugger. It was easy to get setup in VVV but I could never get the path mappings right in Trellis. Turns out it’s super easy with PhpStorm’s Zero-Configuration Debugging.

I did a quick screen cast if anyone is interested:

> **[Trellis + Xdebug + PhpStorm | smutek.net](https://smutek.net/trellis-xdebug-phpstorm/)**
>
> I love running Xdebug through PhpStorm’s built in debugger but have had the hardest time getting it to work with Trellis. I have no problem getting it going with VVV but have never been able to get my…

…but the short of it is:

1. Install one of the [JetBrains bookmarklets](https://www.jetbrains.com/phpstorm/marklets/), or use a browser extension like [this one for Firefox,](https://addons.mozilla.org/en-US/firefox/addon/the-easiest-xdebug/) or [this one for Chrome](https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc?hl=en), or whatever.
2. Give your extension the IDE key `XDEBUG`
3. Set a breakpoint and tell PhpStorm to start listening for connections
4. Refresh your browser and accept the default mappings that PhpStorm detects

I’m digging the Roots stack but was really missing my debugger as it’s helped me to learn a ton. It’s great to have it back.

Hope this is helpful to someone.

:slight_smile:

---

## Post 2 by @swalkinshaw — 2016-08-30T14:11:22Z

So no changes were actually needed on the Trellis/VM side of things right? Just want to make sure there’s nothing we’re missing to make this easier.

---

## Post 3 by @smutek — 2016-08-30T21:12:54Z

Nope, no changes on the VM side at all. I don’t think it could possibly be easier.

:smile:

---

## Post 4 by @stejmurphy — 2016-09-29T14:09:47Z

Thanks for this! No more var dumps!

---

## Post 5 by @Mitra_Mejia — 2016-11-09T04:46:07Z

If using a self-signed ssl certificate just like the one Trellis provides you must uncheck the following **option in Phpstorm** , @smutek great walkthrough :slight_smile:

 ![](https://discourse.roots.io/uploads/default/original/2X/b/b5a4539a1ec3cebc94462552215cf6f0c9d46d8d.jpg)
