Category : xdebug-3

I set up a Laravel dev environment using Docker – nginx:stable-alpine, php:8.0-fpm-alpine and mysql:5.7.32. I install Xdebug from my php.dockerfile: RUN apk –no-cache add pcre-dev ${PHPIZE_DEPS} && pecl install xdebug && docker-php-ext-enable xdebug && apk del pcre-dev ${PHPIZE_DEPS} And include two volumes in docker-compose to point php to xdebug.ini and error_reporting.ini: volumes: – .:/var/www/html – ..

Read more

I’ve been struggling with this for some time and here I am 🙂 I have a php container with xdebug installed in a Ubuntu 20.04 laptop: rest-example-php-8: container_name: rest-php build: ./docker/php/ expose: – 9000 depends_on: – rest-example-mysql – rest-example-redis volumes: – .:/var/www/html – ./docker/php/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini – ./docker/php/conf.d/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini extra_hosts: – "host.docker.internal:host-gateway" The build file: FROM php:8.0-fpm RUN ..

Read more

I cant’ activate the step debbuger of xDebug 3.0.4 with PHP 7.4.20. xDebug features status: So, my xDebug configuration is : [xdebug] ;xdebug.discover_client_host=1 xdebug.mode=debug xdebug.start_with_request=yes xdebug.remote_handler=dbgp xdebug.client_host=host.docker.internal xdebug.client_port=9003 xdebug.max_nesting_level=1000 xdebug.idekey=PHPSTORM Also, my xDebug run into a PHP FPM docker container. If anyone can help me :), thanks. Source: Docker..

Read more

I cant’ activate the step debugger of Xdebug 3.0.4 with PHP 7.4.20. Xdebug features status: So, my Xdebug configuration is : [xdebug] ;xdebug.discover_client_host=1 xdebug.mode=debug xdebug.start_with_request=yes xdebug.remote_handler=dbgp xdebug.client_host=host.docker.internal xdebug.client_port=9003 xdebug.max_nesting_level=1000 xdebug.idekey=PHPSTORM Also, my Xdebug run into a PHP FPM docker container. If anyone can help me :), thanks. Source: Docker..

Read more

Environment I’m using Windows 10 Docker Desktop 3 for Windows With a container with the environment variable PHP_IDE_CONFIG=serverName=Docker XDebug 3 PhpStorm 2021.1.2 With an entry in Settings > PHP > Servers called "Docker" With these XDebug settings: php -i | grep xdebug xdebug.cli_color => 0 xdebug.client_discovery_header => no value xdebug.client_host => host.docker.internal xdebug.client_port => 9003 ..

Read more

I have few docker containers: php, nginx, mariadb, redis, adminer and try to debug some PHP code with PhpStorm and Xdebug. Host (Lenovo T490 laptop): $ hostname T490 $ docker -v Docker version 20.10.5, build 55c4c88 $ docker-compose -v docker-compose version 1.24.1, build 4667896b $ cat /etc/lsb-release DISTRIB_ID=neon DISTRIB_RELEASE=20.04 DISTRIB_CODENAME=focal DISTRIB_DESCRIPTION="KDE neon User Edition 5.21" ..

Read more