您的位置:首页 > 编程语言 > PHP开发

PHPStorm Xdebug配置

2016-06-17 13:48 555 查看
下载PHSTORM

https://download.jetbrains.com/webide/PhpStorm-2016.1.2.exe

http://idea.lanyus.com/查找授权服务器输入
http://idea.qinxi1992.cn


下载安装xdebug,将PHPINFO()输入赋值到一下界面

https://xdebug.org/wizard.php


修改PHP.ini添加xdebug模块路径,默认端口9000

[xdebug]
zend_extension = E:\LAMP\PHP\ext\php_xdebug-2.4.0-7.0-vc14-x86_64.dll
xdebug.remote_enable=true
xdebug.remote_handler = dbgp
xdebug.remote_host= localhost
xdebug.remote_port = 9000


安装Chrome xdebug插件和PHPStorm浏览器插件

http://pan.baidu.com/s/1gfyhCmn


PHPStorm浏览器插件

http://pan.baidu.com/s/1boZTo6N


PHPStorm打开file -> setting -> language and framework ->php 设置XDEBUG端口9000

file -> setting -> language and framework -> server添加本地服务器路径

name:localhost
host:127.0.0.1 port:80 xdebug


设置file -> setting -> language and framework ->php -> debug -> dbgp

IDE KEY: PHPSTORM
host: localhost
port: 9000


点击Run -> 最下方 web server debug validate -> 然后设置服务器根目录,点击validate

然后点击Run -> Start listening for PHP Debug Connect 设置断点,chrome上点击xdebu为debug模式就可以了

  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: