First, find their environment corresponding xdbug version
Phpinfo paste the information into the box can be found in the corresponding version
tar -xvzf xdebug-2.6.1.tgz
cd xdebug-2.6.1
phpize
./configure --with-php-config= /www/server/php/72/bin/php-config
make && mkaeinstall
After a successful installation display
/www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/
we /www/server/php/72/etc/php.ini
zend_extension = /www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/xdebug.so
; Here is the remote port, remote port can be set according to their own
xdebug.remote_port=9000
; Remote automatic start, we set is 1, which is the start
xdebug.remote_autostart=1
; Automatic tracking, we set is 1, which is the automatic tracking
xdebug.auto_trace=1
; If enabled, will ignore the following parameters xdebug.remote_host
xdebug.remote_connect_back = 1
; Note that this is, ip client <ie IDE machines ip, not your web server>
xdebug.remote_host = "116.7.97.60"
; Remotely turn, is open 1
xdebug.remote_enable=1
; This agreement can only be dbgp
xdebug.remote_handler = "dbgp"
; Mode that is the script that is connected to start
xdebug.remote_mode = "req"
xdebug.idekey= "PHPSTROM"