-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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 Workspace Container #1027
Comments
Modify like this: Install php-xdebug after |
Hi, |
+1 on more clarification on this in the docs. If I edit the The docs do not show any info on where to set the typical URL triggers for xdebug... so I would recommend that the docs include the bit about which container to log into and where to edit the options, e.g.
but, of course, I can't find an editor installed on that container (not vim, emacs, pico, nano, etc). So it's a long and windy homework assignment to figure out how this was intended to be used when an extra sentence or two could have saved many of us hours of time. Furthermore... I don't see any |
@fireproofsocks , but why did you try to edit xdebug.ini IN container when docs clearly says
And about |
What docs are you reading @brunen9 ? The only xdebug info I've found http://laradock.io/guides/#enable-xdebug-on-php-fpm -- besides the error you confirmed, it says this:
which I don't think specifies anything about which host or folder where edits should be made... the only bit about the xdebug.ini seems to be in the wrong section (down by the firewall settings?). Regardless, I don't think the proper place to enable xdebug is in any docker-compose.yml file, is it? It looks like it's meant to be edited in the .env, no? But then what steps are required to recompile the containers with that extension enabled? Those are really the most important bits of information about using xdebug and they do not appear to be in the docs. What am I missing? |
@fireproofsocks , try this link: http://laradock.io/documentation/#install-xdebug |
@brunen9 thanks! That would be a useful page to link to from the other section. It seems that the
|
@fireproofsocks , in my case this file is fine and works, and line 100 is just empty line: Line 100 in c2c30bf |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi again 👋 we would like to inform you that this issue has been automatically |
Info:
$ docker --version
): Docker version 1.12.6$ git rev-parse HEAD
): c35445bIssue: Xdebug on Workspace Container
What seems to be going wrong?
I can't install xdebugger on workspace container . i am following the instructions and i set the
WORKSPACE_INSTALL_XDEBUG=true
but when i execute the command : docker-compose build workspace php-fpm
the workspace container throw the bellow :
**After this operation, 3,720 kB of additional disk space will be used.
Err:1 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php-xdebug amd64 2.5.1-1+deb.sury.org~xenial+1
404 Not Found
W: --force-yes is deprecated, use one of the options starting with --allow instead.
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/x/xdebug/php-xdebug_2.5.1-1+deb.sury.org~xenial+1_amd64.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
ERROR: Service 'workspace' failed to build: The command '/bin/sh -c if [ ${INSTALL_XDEBUG} = true ]; then apt-get install -y --force-yes php-xdebug && sed -i 's/^;//g' /etc/php/7.1/cli/conf.d/20-xdebug.ini && echo "alias phpunit='php -dzend_extension=xdebug.so /var/www/vendor/bin/phpunit'" >> ~/.bashrc ;fi' returned a non-zero code: 100**
Expected behavior:
What should be happening instead?
to install xdebug to workspace container
Reproduce:
How might we be able to reproduce the error?
set WORKSPACE_INSTALL_XDEBUG=true
at the .env environment file
Relevant Code:
After this operation, 3,720 kB of additional disk space will be used.
Err:1 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php-xdebug amd64 2.5.1-1+deb.sury.org~xenial+1
404 Not Found
W: --force-yes is deprecated, use one of the options starting with --allow instead.
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/x/xdebug/php-xdebug_2.5.1-1+deb.sury.org~xenial+1_amd64.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
ERROR: Service 'workspace' failed to build: The command '/bin/sh -c if [ ${INSTALL_XDEBUG} = true ]; then apt-get install -y --force-yes php-xdebug && sed -i 's/^;//g' /etc/php/7.1/cli/conf.d/20-xdebug.ini && echo "alias phpunit='php -dzend_extension=xdebug.so /var/www/vendor/bin/phpunit'" >> ~/.bashrc ;fi' returned a non-zero code: 100
The text was updated successfully, but these errors were encountered: