leonheart 发表于 2017-1-3 12:40:33

phpstorm xdebug apache(调试)


 
接着
打开你所配置的php目录下的php.ini,指定php_xdebug.dll位置,并开启xdebug,具体如下:
注意这里的9000与上面的9000是一一对应的,如果上方为9001,这里就为9001



zend_extension="E:/work/PHP/ext/php_xdebug.dll"



xdebug.remote_enable   = On
xdebug.remote_host     = "localhost"
xdebug.remote_port     = 9000
xdebug.remote_handler  = "dbgp"
xdebug.auto_trace = 1
xdebug.collect_includes = 1
xdebug.collect_params = 1
xdebug.collect_return = 1
xdebug.default_enable = 1
xdebug.collect_assignments = 1
xdebug.collect_vars = 1
xdebug.remote_autostart = 1
xdebug.remote_connect_back = 1
xdebug.show_local_vars = 1
xdebug.show_exception_trace = 0





第二步
phpStorm -> Settings -> php -> Servers新建一个Server,并指定你的服务器地址,具体如下:
这里的port根据自己的设置而填写相应的
 

 

第三步
start listen php debug connection,具体如下:
点击下面的“红色电话”按钮让其变绿即可

 


-------》






第四步
设置断点




第五步
用浏览器打开即可断点 



 
 
页: [1]
查看完整版本: phpstorm xdebug apache(调试)