9/3/2023 0 Comments Download phpstorm debug docker![]() You can have any version of any service in the container which won't affect each other. In PHP development flow, Docker is my everyday tool. However, I wish MacOS performance was better for docker engine. #Phpstorm debug php how toĪnd Xdebug is one of the most known tools for PHP debugging.īut how to use it inside of the docker container? Down below I will describe my normal daily setup: Daily work with PHP includes debugging, yeah. Debugging PHP scripts # Configure docker container.Docker container with PHP+XDebug installed. :/var/myapp # pick a name for the containerĬontext: docker/php # here is the Docker file for this container I am using docker-compose to manage my containers. ![]() This file describes the php service which is based on a Dockerfile located at docker/php/Dockerfile. Docker file installs Xdebug extension with pecl command.# This needs in order to run xdebug from PhpStormĮNV PHP_IDE_CONFIG 'serverName=DockerApp' RUN docker-php-ext-install mbstring bcmath The Dockerfile looks like this: FROM php:7.3 The fileĬontains all the configuration you need for your PHP service - dependencies, libraries, packages, etc. We can tweak our PHP settings whatever we like for our development environment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |