首页 > 后端开发 > php教程 > phpstorm+xdebug

phpstorm+xdebug

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
发布: 2016-07-29 08:51:08
原创
1203 人浏览过

[xdebug]

zend_extension=”C:\Apache\AppServ\php5.4.20\ext\php_xdebug-2.3.3-5.4-vc9.dll”

xdebug.default_enable=1

xdebug.auto_trace = 1

xdebug.show_exception_trace = 1

xdebug.collect_vars = 1

xdebug.collect_return = 1

xdebug.collect_params = 1

xdebug.profiler_enable = 1

xdebug.profiler_enable_trigger = 0

xdebug.profiler_output_name = “cachegrind.out.%t-%s”

xdebug.remote_autostart = 1

xdebug.remote_enable = 1

xdebug.remote_handler = “dbgp”

xdebug.remote_host = “localhost”

xdebug.remote_port=9002

xdebug.idekey=”PHPSTORM”

xdebug在php.ini的配置,端口默认是9000,最好改成别的,我改的是9002,idekey需要自己设置下,一会phpstorm配置需要。

打开phpstorm,ctrl+alt+s打开设置,先修改php版本
phpstorm+xdebug

Debug端口修改为9002
phpstorm+xdebug

Servers添加:
name随便写
host:项目域名一般都是localhost
port :端口号
debugger:默认的Xdebug
phpstorm+xdebug

修改DBGp Proxy
IDE key:填写上边配置的key,我这里是 PHPSTORM
host:localhost (本机ip)
port:9002 (xdebug配置端口)
phpstorm+xdebug

点击这里,Edit Configurations
phpstorm+xdebug

添加debug:
name随便写
server:选择刚才配置的server
Strat url:加载的文件路径
phpstorm+xdebug

正常添加后灰色的绿箭头和虫子就能点了,我用的chrome,先去应用商店装JetBrains IDE Support插件,然后打上断点,点击电话的图标,点虫子,应该就会自动打开浏览器加载项目路径了,回到ide就能看到debug信息了,如图
phpstorm+xdebug

注:如果出现这个报错 Waiting for incoming connection with ide key ‘15930’
,应该是xdebug没有设置好。
引入dll 文件
正确的:zend_extension=”C:\Apache\AppServ\php5.4.20\ext\php_xdebug-2.3.3-5.4-vc9.dll”
错误的:extension=”C:\Apache\AppServ\php5.4.20\ext\php_xdebug-2.3.3-5.4-vc9.dll”,否则会

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

以上就介绍了phpstorm+xdebug,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

相关标签:
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
sublime xdebug问题
来自于 1970-01-01 08:00:00
0
0
0
在 M1 Apple 上安装 PHP 7.4 的 Xdebug
来自于 1970-01-01 08:00:00
0
0
0
phpstorm 中使用xdebug进行调试无法进入断点
来自于 1970-01-01 08:00:00
0
0
0
php5.6+apache+xdebug,64位,会卡住网页不动?
来自于 1970-01-01 08:00:00
0
0
0
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板