While Xdebug is a powerful tool and will absolutely save you loads of time, theres a dark side. Finally, load your local sites home and watch how PhpStorm will pause code execution at your breakpoint in the index.php file. you may only use these constants *after* the line that loads the extension. Also ensure that PhpStorm is still set to listen to incoming Xdebug connections. dynamically loaded extension (either a PHP extension or a Zend extension), Open it and add the following line zend_extension=/usr/lib/php/20190902/xdebug.soĪfter If you use constants in your value, and these constants belong to a You should add "zend_extension=/usr/lib/php/20190902/xdebug.so" to php.iniįind where is my php.ini. When it's done, system told me Build process completed successfully I can install xdebug sudo pecl install xdebug
#Xdebug phpstorm how to#
sudo apt-get install xdebugīut, it gave me the error "phpize" didn't find. When I go through the xdebug website, I knew that I need to install PHP development headers. So, install php-dev sudo apt-get install php-dev I am beginner and I need to know how to use and configure PhpStorm IDE with XAMPP (Apache server and MySQL DB) and Xdebug (I need.
So, in this paragraph, I will write down how I install Xdebug and config with PHPStorm in Ubuntu.įollowing the instructions of the Xdebug website, I try to install Xdebug with PCEL. And many developers using PHPstorm as an IDE. But how to debug it when you meet a problem? You can use echo, but it will make your web page messy. A debugging session will start and Xdebug will initialize a connection to PHPStorm. To develop a PHP project, Ubuntu is a good choice. Open a project in PHPStorm and set a breakpoint wherever you like Click on the Start Listening for PHP Debug Connections button in PHPStorm.