下载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.-7.0-vc14-x86_64.dll
xdebug.remote_enable=true
xdebug.remote_handler = dbgp
xdebug.remote_host= localhost
xdebug.remote_port =
安装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:
点击Run -> 最下方 web server debug validate -> 然后设置服务器根目录,点击validate
然后点击Run -> Start listening for PHP Debug Connect 设置断点,chrome上点击xdebu为debug模式就可以了