In Debian, they are present without any work. Xdebug depends on some libraries, which would have to be installed manually, if we would use Alpine. Instead of using the Alpine version of php-fpm image, we are using the default php-fpm image with Debian for simplicity. Let's start by modifying PHP Dockerfile: FROM php:fpm We'll be using PHP with Nginx, just like in our previous article. In our case, we will be using Visual Studio Code with PHP Tools. On the picture below, you can see a very simplified pipeline of execution: that's what we're going to build in this tutorial.Īfter a request to our docker container, Xdebug will initiate a connection with our IDE. Debugging is a way to pause the execution of codeto see what's going on. We will be using our php+nginx setup from the last article and you can find all the source codes for this one at github Xdebug In this article, we'll continue our discussion about development environments - more specifically, we will talk about debugging with the help of PHP Tools inside Visual Studio Code. In the previous article, we learned how to create two connected containers with php and nginx with the help of Docker compose, and we also talked about different environments where your software needs to work. & echo "deb stable main" > /etc/apt//yarn.Welcome to the third article of PHP on Docker. RUN apt-get update & apt-get install -y \ RUN chmod +x /usr/local/bin/install-php-extensions & \ docker/mysql:/docker-entrypoint-initdb.d docker/php/php.ini-development:/usr/local/etc/php/php.ini docker/php/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini docker/php/local.ini:/usr/local/etc/php/conf.d/local.ini XDEBUG_MODE is being read correctly though. When I output xdebug_info() it says "no value" for xdebug.idekey. I have a docker-compose file that has the XDEBUG_CONFIG environment variable configured, but Xdebug is ignoring it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |