& 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 Click "Ignore" on that dialog, set up the server mapping, and try again, and you should get a proper debug session.I just want to help out a bit how I managed to set it up with my client's docker. Then click "Listen for debug connections" in the toolbar, and run your script a dialog box should pop up showing the "Server name:" and "Server port:" it is trying to match, as well as confirming the remote file path. To find out what details you need to set up, go into "Settings > Languages and Frameworks > PHP > Debug", enable "Force break at the first line when no path mapping specified", and make sure "Ignore external connections through unregistered server configurations" is not ticked. For CLI scripts, the info to put in here will be based on your connection to the server where the CLI script runs. Normally, you would enter a URL into "Host" and set "Port" to the HTTP port, e.g. You need to set up a "server" configuration in "Settings > Languages and Frameworks > PHP > Servers" which maps the paths as seen on the server to the paths in your project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |