![]() ![]() I tried sending XDEBUG_SESSION_START=XDEBUG_IDEA as GET.WebMy name is Arman Khan and I have over 5 years of experience in software development for RTOS and Linux. ![]() I tried using a cookie (and yes, I set XDEBUG_IDEA as session id in xdebug helper). but for some reason nothing whatsoever happens when I try to start a debug session. I can call PHP files on the Container, I can connect to the db via the link. Server is Docker, session id is XDEBUG_IDEA. In the PHP->Debug settings I checked that I use port 9000 for incoming connections, that I will accept external connections and that I will not ignore connections from unregistered servers.Īfter this I created a new PHP Remote Debug Configuration called Docker, too. I setup the path mapping analogous to the Volume mapping in the docker run statement. Next I setup a Server inside IntelliJ IDEA called 'Docker' with Host 127.0.0.1, Port 8080 and Debugger Xdebug. I call docker run -rm -ti -name web -p 127.0.0.1:8080:80 -v /path/to/projects:/var/is up and running. RUN echo 'date.timezone = Europe/Berlin' > /usr/local/etc/php/conf.d/date.ini RUN touch /usr/local/etc/php/conf.d/xdebug.ini \Įcho xdebug.remote_enable=1 > /usr/local/etc/php/conf.d/xdebug.ini \Įcho xdebug.remote_autostart=0 > /usr/local/etc/php/conf.d/xdebug.ini \Įcho xdebug.remote_connect_back=1 > /usr/local/etc/php/conf.d/xdebug.ini \Įcho xdebug.remote_port=9000 > /usr/local/etc/php/conf.d/xdebug.ini \Įcho xdebug.remote_log=/tmp/php5-xdebug.log > /usr/local/etc/php/conf.d/xdebug.ini RUN echo 'zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so' > /usr/local/etc/php/php.ini # zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so RUN docker-php-ext-install mysqli mbstring I built a Docker image 'phpmysqli' with the following Dockerfile FROM php:apache I have a database container running mysql which is working like a charm. I'm trying to setup a dockered AMP environment and can't get the remote debugger working. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |