安装xdebug结合phpstorm使用
1.安装xdebug
修改php.ini
[Xdebug]
zend_extension="/usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so"
xdebug.remote_enable=1
#xdebug.var_display_max_children=128
#xdebug.var_display_max_data=51200000
#xdebug.var_display_max_depth=5
xdebug.remote_host=10.207.6.236
xdebug.remote_port=9000
xdebug.remote_connect_back = 1
xdebug.remote_autostart = 1
xdebug.idekey=PHPSTORM
遇到的问题:
重启php-fpm之后报502错误,配置文件文件有问题
2.phpstrom配置xdebug
phpstrom2017.2.1
file>settings>languages & frameworks>php>debug
配置xdebug port 9000
服务器
blog.com 80
IDE KEY :PHPSTORM
host: blog.com
port 9000
参考链接
https://www.cnblogs.com/yjken/p/6555438.html

浙公网安备 33010602011771号