-
-
Notifications
You must be signed in to change notification settings - Fork 169
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
Automatically trigger Xdebug when running PHP on CLI inside php-debug container #33
Comments
|
https://gist.github.com/molotovbliss/3eb18a2b0366d9b9e15647322641816d just to note for a possible way to get the container id along with passing the usual xdebug php params & script file to debug. Created a PR with included help file and removal and clean-up. Version change may not be needed, FYI. |
…ipts debugging.
@davidalger this sounds as a great idea. I'm not sure if I'm missing something, but wouldn't it be just about adding those two config directives in /etc/php.d/15-xdebug.ini in this container? |
Per a conversation I had with @wcrb15 the gateway IP of the The gateway IP address can be looked up via the following similar to [what is done here](docker container inspect traefik --format '{{.NetworkSettings.Networks.warden.Gateway}}'):
|
…ipts debugging.
Supports work being done on wardenenv/warden#33 and wardenenv/warden#35
…ug images Supports work being done on wardenenv/warden#33 and wardenenv/warden#35
Final solution has been to update PR #35 to adhere to the following:
Big shout out to @wcrb15 for helping ascertain what the remote host should be configured to on Linux systems and to @molotovbliss for getting the ball rolling with the idea of a special debug command. |
Thanks for the 😊 props, and same to @chapagain for updating my old gist with this feature! Cheers. 🍻 |
The php CLI inside the
php-debug
container should trigger Xdebug automatically. Currently the only way to debug CLI commands (as opposed to HTTP requests which are routed to Xdebug automatically already) is to specify a couple settings to php:At minimum remote_autostart should be set on CLI by default, and ideally the remote_host as well. That one will require a little work to get right on both macOS and Linux.
The text was updated successfully, but these errors were encountered: