![]() To debug remotely what should be the xdebug.remote_host. I read many tutorial about how to debug remotly but no one was enough good to explain how to configure it with Docker. ![]() Xdebug.remote_host=īut now, i need to run this stack remotely on server and still debug from my computer ( MacOs ). I actually use this config : error_reporting = E_ALL ![]() Nothing really special except the fact that xdebug.remote_host is the ip of the host on linux and on macos To debug web page using chrome and xdebug helper extension. Just one more thing, on all of you curios how I debug xdebug is with simple phpinfo().I managed to use xdebug with a docker stack running on my own computer : In the PHPStorm small changes were required the server needed to be renamed to jo and the mappings to /var/you need to rebuild it with this: docker-compose up -build Please refer to the installation instructions on how to install Xdebug. In the end, I went straight to docker-compose.yml and changed this: fpm: Take a note at the _ Install Xdebug_ section. & echo "xdebug.remote_connect_back=1" > /usr/local/etc/php/conf.d/xdebug.ini \ & echo "xdebug.remote_port=9000" > /usr/local/etc/php/conf.d/xdebug.ini \ & echo "xdebug.idekey=PHPSTORM" > /usr/local/etc/php/conf.d/xdebug.ini \ & echo "xdebug.remote_autostart=off" > /usr/local/etc/php/conf.d/xdebug.ini \ & echo "xdebug.remote_enable=on" > /usr/local/etc/php/conf.d/xdebug.ini \ & echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \ Mv composer.phar /usr/local/bin/composer & \ with-freetype-dir=/usr/include/freetype2 \ RUN apt-get update & apt-get install -y libfreetype6-dev libjpeg-dev libpng-dev libfontconfig1 libxrender1 git libmcrypt-dev zip mysql-client & \ #RUN printf "deb jessie main\ndeb-src jessie main\ndeb jessie/updates main\ndeb-src jessie/updates main" > /etc/apt/sources.list # Set to keep file permissions same as host for mounted volume ![]() I started changing files fpm.docker: FROM php:7.1.18-fpm Real example on my computer: /var/www/html/jobsoutsource (dev) $ docker-compose exec fpm hostname -I To get the IP I used this syntax: docker-composer exec hostname -I I just want to help out a bit how I managed to set it up with my client's docker. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |