Unable to get xdebug working

Open
#9 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
docker, php, vscode, wordpress

Research direction

Start with docker-compose.yml and the VSCode debugging setup, then inspect the wordpress container's XDEBUG_CONFIG and run phpinfo() as described. Compare the observed configuration with the linked instructions. Done means remote debugging is enabled and VSCode breakpoints trigger.

Written by the indexing model from the issue text.

Description

I've followed the instructions for both my docker-compose.yml and VSCode but I'm having trouble getting XDebug to work.

I opened a shell into the wordpress docker container and verified that XDEBUG_CONFIG is set to client_host=host.docker.internal.

VSCode is listening for XDebug but none of my breakpoints are actually triggered.

Just for fun, I ran phpinfo() and it seems like remote debugging isn't turned on.
image

I'm assuming I'm doing something wrong but I'm not sure what.

Dominant language
Dockerfile
Stars
27
Forks
10
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Automattic/wordpress-xdebug

All issues in Automattic/wordpress-xdebug

Similar issues

More DevTools issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.