Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xdebug v3 remote step debugger config missing #200

Open
jaakkolehtonen opened this issue Dec 14, 2022 · 2 comments
Open

Xdebug v3 remote step debugger config missing #200

jaakkolehtonen opened this issue Dec 14, 2022 · 2 comments

Comments

@jaakkolehtonen
Copy link

jaakkolehtonen commented Dec 14, 2022

Hi, seravo/wordpress:development docker image ships with xdebug v3 but configuration (/etc/php/7.4/fpm/conf.d/20-xdebug.ini) is still for v2.

This fixes remote step debugging in v3:

docker-compose exec --user vagrant wordpress bash

sudo nano /etc/php/7.4/fpm/conf.d/20-xdebug.ini

# Append these to end of file
xdebug.mode=develop,debug
xdebug.client_host=host.docker.internal
xdebug.start_with_request=yes
xdebug.log=/data/log/xdebug.log

wp-restart-php
@jaakkolehtonen
Copy link
Author

jaakkolehtonen commented Dec 14, 2022

Im using VSCode for step debugging with following config and everything works great:

.vscode/launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Listen for Xdebug",
            "type": "php",
            "request": "launch",
            "port": 9003,
            "pathMappings": {
                "/data/wordpress/htdocs/": "${workspaceRoot}/htdocs/"
            }
        }
    ]
}

.vscode/settings.json

{
  "php.debug.ideKey": "vagrant"
}

@frimro
Copy link
Contributor

frimro commented Dec 15, 2022

Hi, this should be fixed in seravo/wordpress:nightly. We're still testing and ironing out some stuff before we're comfortable releasing a new version for the development tag. But if you could give the nightly version a spin and test that everything works nicely on your end too, that would be appreciated.

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

No branches or pull requests

2 participants