![]() ![]() libĬhecking if compiler supports -Wl,-rpath. ![]() yesĬhecking for system library directory. cc -EĬhecking whether cc understands -c and -o together. none neededĬhecking how to run the C preprocessor. yesĬhecking for cc option to accept ISO C89. noĬhecking whether we are using the GNU C compiler. a.outĬhecking whether we are cross compiling. yesĬhecking for C compiler default output file name. ![]() usr/bin/sedĬhecking whether the C compiler works. usr/bin/grepĬhecking for a sed that does not truncate output. Running: /private/tmp/pear/install/xdebug/configure -with-php-config=/usr/bin/php-configĬhecking for grep that handles long lines and -e. Grep: /usr/include/php/Zend/zend_extensions.h: No such file or directoryīuilding in /private/tmp/pear/install/pear-build-rootbiObks/xdebug-2.7.2 Grep: /usr/include/php/Zend/zend_modules.h: No such file or directory Grep: /usr/include/php/main/php.h: No such file or directory Starting to download xdebug-2.7.2.tgz (230,987 bytes) In our case it was 9003.ĭisable xdebug for commandline only sudo phpdismod -s cli CommandLineTools % sudo pecl install xdebug Restart the apache server to reflect changesĮnsure that 'Debug port' is the same as you have in your xdebug.ini.Xdebug.file_link_format=phpstorm://open?%f:%l Add these lines without modifying exiting.Your xdebug.ini file path should look like this.Assuming that you have already installed php and apache.□ Install and Configure xDebug v3 on Ubuntu for PhpStorm □ You should see a popup window in PhpStorm, click Accept connection If you can't find telephone button then go through menus - Run -> Start listening for PHP Debug ConnectionsĬonfigure this chrome extension and set IDE Key to PHPSTORM Start listener by clicking on the telephone □ button on top toolbar Make sure those breakpoints gets executed when your visit your website in browser. Restart the apache server to reflect changesĮnsure that 'Debug port' is the same as you have in your ext-xdebug.ini. Remove any occurrence of zend_extension="xdebug.so" from this file When installing xdebug extension using pecl, it also updates our php.ini file, but we don't need that.įind your php.ini file, file path should look like this (depends on php version installed) /usr/local/etc/php/7.4/conf.d/ext-xdebug.ini.Your ext-xdebug.ini file path should look like this (depends on php version installed).See also this YouTube video explaining how to diagnose issues.□ Install and Configure xDebug v3 on MacOS for PhpStorm □Īssuming that you have already installed php and apache via Homebrew You can more easily self-diagnose issues by creating a page including xdebug_info() (like phpinfo()), which will show you all the settings that Xdebug has, which modes are configured, and which hosts (if at all) Xdebug tried to connect to. With docker you do not want the xdebug.discover_client_host=1 (so set it to 0). The xdebug.remote_host setting should now be xdebug.client_host=192.168.0.1 (if that's the IP address of the host where your IDE is listening on). You should get rid of these: & echo "xdebug.remote_enable=on" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \ Pecl install xdebug installs Xdebug 3, where some of your settings are for Xdebug 2. RUN mv /root/.symfony/bin/symfony /usr/local/bin/symfony RUN curl -sS | php -install-dir=/usr/local/bin -filename=composer & echo "xdebug.idekey=docker" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \ & echo "xdebug.discover_client_host=1" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \ & echo "xdebug.start_with_request=yes" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \ & echo "xdebug.mode=debug" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \ & echo "xdebug.remote_connect_back=0" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \ & echo "xdebug.remote_handler=dbgp" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \ & echo "xdebug.remote_port=9001" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \ & echo "xdebug.remote_autostart=1" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \ & echo "xdebug.remote_enable=on" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \ RUN pecl install xdebug & docker-php-ext-enable xdebug \ & docker-php-ext-install intl opcache pdo pdo_mysql \ RUN apt-get update & apt-get install -y zlib1g-dev g++ git libicu-dev zip libzip-dev zip \ After a few days of war with my Docker, Xdebug and PhpStorm I got this problem.Īfter I use curl 127.0.0.1:6080 (because this is my port from docker-compose) there is nothing happens in debug section. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |