Install Xdebug 3 with PhpStorm on macOS

MacBook Pro affichant un éditeur de code

For this example, we will use the Docker installation as well as the Symfony 5 setup described in another article: Article Docker, Symfony 5 Creating an alias for the IP used On MacOS, it is necessary to create an alias for the IP we use. It is common to use the IP: 10.254.254.254 The command … Read more

Docker: How to use XDebug with docker-compose

MacBook avec code sur un bureau

Docker In the docker-compose.yml file create an images/php image importer: build: images/php ports: – 80:80 volumes: – ../..:/var/www find your IP address (ifconfig / ipconfig), in my example (10.1.0.133) Create a Dockerfile in the images/php folder FROM php:7.0.1-apache RUN yes | pecl install -o -f xdebug \ && rm -rf /tmp/pear \ && echo “zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so” … Read more

Docker: How to use nano

MacBook Pro affichant un éditeur de code

To use nano in Docker, you have to update apt-get and install nano. When trying to open a file you may face the error Error opening terminal: unknown. No worries, just export the TERM=xterm variable apt-get update apt-get install nano export TERM=xterm