# Add "Setting up Xdebug" section in PHP docs \(\#40470\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/e3297cdcaed2b5ca84702bb76d2893bee8e07155)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: e3297cdcaed2b5ca84702bb76d2893bee8e07155

Requested commit: e3297cdcaed2b5ca84702bb76d2893bee8e07155

Commit: e3297cdcaed2b5ca84702bb76d2893bee8e07155

Tree: 02dc78aeb204ee078c999743ab15dc5cbf157f68

Author: Sylvain Brunerie

Committer: GitHub

## Message

```
Add "Setting up Xdebug" section in PHP docs (#40470)

The page about PHP in the docs doesn’t explain how to use Xdebug. I had
a lof of trouble setting it up the first time, then recently had another
headache trying to get it to work again, because the value for `adapter`
had changed from `PHP` to `Xdebug`.

It’s likely that my example config isn’t perfect or has redundant stuff
or whatever, feel free to amend it.

I also took the liberty to set the Phpactor and Intelephense headings to
level 3 because I felt like they were part of "Choosing a language
server."

Release Notes:

- N/A
```

## Parents

- [92ff29fa7d98858011c584904d7a64f38a49b670](https://git.cafe/gitcafe/zed/commit/92ff29fa7d98858011c584904d7a64f38a49b670?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/e3297cdcaed2b5ca84702bb76d2893bee8e07155?format=markdown)
