PhpStorm + XAMPP + Xdebug integrated development and breakpoint debugging environment configuration, phpstormxampp
0x01 Xdebug Installation
Reference: https://xdebug.org/docs/install
cd xdebug-2.5.4/phpizesudo ./configure --enable-xdebugsudo make & make install
And move module/xdebug. so to/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20151012/File
0x02 install XAMPP
Reference: https://www.apachefriends.org/zh_cn/index.html
Download and install the SDK directly.
0x03 configure php. ini
Add the following configuration in XAMPP. Note the zend_extension path Configuration:
Zend_extension = "/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20151012/xdebug. so"
Xdebug. remote_enable = on
Xdebug. remote_handler = dbgp
Xdebug. remote_host = localhost
Xdebug. remote_port = 9000
Xdebug. profiler_enable = 1
Xdebug. remote_log = "/Applications/XAMPP/xamppfiles/logs/xdebug. log"
Xdebug. idekey = "PHPSTORM"
0x04 PhpStorm Installation
Reference: http://www.jetbrains.com/phpstorm/
0x05 plug-in Installation
Install JetBrains IDE Support and Xdebug helper in Chrome.
0x06 configure PhpStrom
Configure the compiler. Select xampp php from File> Default Settings> PHP> Language & FrameWorks.
Debug Configuration:
Tools> Deployment> Configuration:
0x07 ends
Remember to select Start Listening For PHP... from the Run menu ...,
Then you can enable debugging. If an error occurs in the access path, you can modify the URL path in Run-> Edit Confiurations.