Environment:
My system: 4.4.0-43-generic #63-ubuntu SMP Wed Oct 13:48:03 UTC x86_64 x86_64 x86_64 gnu/linux
PHP version:P hp 5.5.15 (CLI)
window directly download the corresponding PHP version of the Xdebug module, do not compile themselves.
Linux download Xdebug source code, to compile.
Xdebug Download URL: https://xdebug.org/download.php
1) PHP Installation Extension Module-XDebug, follow the instructions compiled xdebug.so copy to the following zend_extension path:
To view the installation information for PHP, run:
1 php-r "phpinfo ();"
View Code
My php.ini is in
Extension_dir in
Edit the file and add the following code:
1 zend_extension =/opt/lampp/lib/php/extensions/no-debug-non-zts-20121212/xdebug. So 2 xdebug.remote_host = 127.0.0.13 xdebug.remote_enable = 14 xdebug.remote_port = 90005
Xdebug.remote_handler = dbgp6 xdebug.remote_mode = req
View Code
Restart the server and execute the command below to see the Xdebug module.
1
View Code
2) Configuration of Phpstorm:
Menu File--setting window opens, upper left corner search: Debug, in Debug Port fill in the above php.ini value, here is 9000.
To configure the development environment, click the down arrow on the left side of the phone icon in the upper right corner:
Configuration of the server
Configuration of PHP Web application:
Finally, click on the bug in the upper right corner to debug.
Installation of Phpstorm Xdebug