码迷,mamicode.com
首页 > Windows程序 > 详细

PHPstudy + phpstrom +xdebug 断点调试(windows) - CSDN博客

时间:2017-11-10 01:44:37      阅读:258      评论:0      收藏:0      [点我收藏+]

标签:xdebug   inf   ati   127.0.0.1   信息   detail   file   端口号   ref   

原文:PHPstudy + phpstrom +xdebug 断点调试(windows) - CSDN博客

php.ini 配置 需要添加如下内容

[XDebug]

xdebug.profiler_output_dir="D:\phpStudy\tmp\xdebug"
xdebug.trace_output_dir="D:\phpStudy\tmp\xdebug"
zend_extension="D:\phpStudy\php\php-5.6.27-nts\ext\php_xdebug.dll"

;zend_extension = D:\phpStudy\php\php-5.6.27-nts\ext\php_xdebug-2.5.1-5.6-vc11-x86_64.dll
xdebug.remote_enable =1
xdebug.remote_handler = "dbgp"
xdebug.idekey = PHPSTORM
xdebug.remote_host = "127.0.0.1"
xdebug.remote_port = 9000

技术分享

php languagel level: 这个是PHP的版本
cli interpreler 选择PHP的文件所在位置,最后选择为php-cgi.exe 文件

技术分享

原有的配置文件不变,主要看Debug port 端口号,要与PHPinfo 里的xdebug port端口号一致

技术分享

Ied key : 这里要查看phpinfo里的xdebug 的key是什么,要写的一致
host:你的访问域名或者 localhost
port:你项目的端口是多少就写多少

技术分享

Name:这个写个名字就好
host:我这里写的是项目的访问路径
prot:项目的端口
debugger:选择xdebug

技术分享

name:随便写个名字
server:选择你刚才创建的那个项目

技术分享

输出这个的调试信息,证明配置成功!祝各位小伙伴配置成功,遇到问题,欢迎留言

PHPstudy + phpstrom +xdebug 断点调试(windows) - CSDN博客

标签:xdebug   inf   ati   127.0.0.1   信息   detail   file   端口号   ref   

原文地址:http://www.cnblogs.com/lonelyxmas/p/7812157.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!