Skip to content

Add Docker Xdebug troubleshooting#19

Open
subhajitlucky wants to merge 1 commit into
zigcBenx:mainfrom
subhajitlucky:docs-docker-troubleshooting-17
Open

Add Docker Xdebug troubleshooting#19
subhajitlucky wants to merge 1 commit into
zigcBenx:mainfrom
subhajitlucky:docs-docker-troubleshooting-17

Conversation

@subhajitlucky
Copy link
Copy Markdown

Fixes #17

Adds a troubleshooting section to the Docker Xdebug guide covering:

  • confirming Xdebug is loaded in the PHP container
  • choosing the right client host for Docker Desktop vs native Linux
  • matching Xdebug 3 ports with the IDE listener
  • enabling and inspecting writable Xdebug logs
  • verifying the mounted Xdebug config file
  • running CLI/test debugging with PHP_IDE_CONFIG

Validation:

  • git diff --check

Copilot AI review requested due to automatic review settings May 12, 2026 14:42
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a troubleshooting section to the Docker Xdebug guide to help diagnose cases where Xdebug is installed but breakpoints are not being hit, improving the Docker environment documentation.

Changes:

  • Adds checks to confirm Xdebug is loaded, and guidance for selecting the correct xdebug.client_host in Docker Desktop vs native Linux.
  • Adds guidance for matching Xdebug 3 port settings with IDE configuration.
  • Adds steps for enabling/inspecting Xdebug logs, verifying mounted config, and debugging CLI/tests with PHP_IDE_CONFIG.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +105 to +109
Create a writable log path inside the container:

```bash
touch /tmp/xdebug.log
chmod 666 /tmp/xdebug.log
Reload the container and inspect the log after making a request:

```bash
docker compose restart
Comment on lines +93 to +100
## Match the IDE Port
Xdebug 3 commonly uses port `9003`, while older examples often use `9000`. Make sure the port in `xdebug.ini` matches the port your IDE listens on:

```ini
xdebug.client_port=9003
```

If you keep `9000`, update the IDE debug port to `9000` as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add troubleshooting for docker environment

2 participants