Vagrant+PHPStorm+Google+XDebug断点调试
1.登陆vagrant修改xdebug.ini配置
A. 登陆vagrant:vagrant ssh
B. 修改配置:sudo vim /etc/php/7.0/fpm/conf.d/20-xdebug.ini
配置内容:
zend_extension=xdebug.so
xdebug.remote_enable = 1
xdebug.remote_connect_back = 1
xdebug.remote_port = 9001
xdebug.max_nesting_level = 512
xdebug.remote_host="192.168.10.10"
xdebug.idekey = "PHPSTORM"
xdebug.default_enable = 1
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.remote_handler="dbgp"
C.重启php: sudo service php7.0-fpm restart2.在PHPStorm->Preferences->Languages & Frameworks->PHP中箭头指向配置

选择+,选择from vagrant

配置如下:

在PHP->Debug->DBGp Proxy设置如下

在PHP->Debug设置端口

在PHP->Servers中设置映射路径

3.在google中下载Xdebug helper,并配置

备注:如果不能断点代表Xdebug和php版本不对应,可以将其他php版本的20-xdebug.ini都设置
相关推荐
chenhaimeimeng 2020-09-15
icysonyk 2020-09-15
codeDig 2020-09-15
lemonzhangyan 2020-09-17
RemixGdc 2020-08-15
nicelife 2020-06-27
zhaowj00 2020-06-06
缘起宇轩阁 2020-04-22
xiaocainiao0 2020-04-22
nicelife 2020-03-26
poplpsure 2020-02-10
nicelife 2019-12-25
amberom 2019-12-05
ipromiser 2019-11-19
MXstudying 2019-11-17
spinachcqb 2019-11-04
ROES 2011-05-05
很青的青蛙 2010-10-07
lff 2008-11-05