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 on bin/magento doesn't work (Docker on Mac) #1221

Open
gkopec opened this issue Sep 16, 2024 · 1 comment
Open

Xdebug on bin/magento doesn't work (Docker on Mac) #1221

gkopec opened this issue Sep 16, 2024 · 1 comment

Comments

@gkopec
Copy link

gkopec commented Sep 16, 2024

I tried to use this video instructions:
https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/36677538
to set up Xdebug on CLI commands. But PHPStorm is showing me this:

image

Here is the command it produced:

"[docker-compose://[/Users/genius-dev/Workspace/projects/tip/b2c/compose.yaml, /Users/genius-dev/Workspace/projects/tip/b2c/compose.dev.yaml]:phpfpm/]:php" -dxdebug.mode=debug -dxdebug.client_port=9000 -dxdebug.client_host=docker.for.mac.localhost /var/www/html/bin/magento

I already tried to set up host.docker.internal but it didn't resolve the issue:

image

Xdebug works with HTTP connection without any problems but I can not force it to debug CLI commands.

@Hawksama
Copy link

Can you try running cli command using this bash file?

https://github.com/Hawksama/docker-magento/blob/master/compose/bin/php-xdebug

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