1 安装 xdebug ( php及chrom )
xdebug官网:https://xdebug.org/download.php
在选择下载哪个版本的xdebug的时候需要注意了,下面有两种方法,让你准确的下载自己环境对应的xdebug文件:
1>.打印出phpinfo()信息,如下:
然后还要注意一点就是看看自己php对应的版本和操作系统的位数,结合这四点去官网找到对应的xdebug文件(本人是php是7.0.1的版本,文件名:php_xdebug-2.6.0-7.0-vc14-x86_64.dll)
1>.将下载好的.dll文件放入指定的位置(......\php\php**\ext\)
phi.ini
[xdebug]
zend_extension="php_xdebug-3.0.4-7.3-vc15-nts-x86_64.dll"
xdebug.mode=debug
xdebug.client_host="127.0.0.1"
xdebug.client_port=9000
;xdebug.profiler_enable=1
xdebug.profiler_output_dir="D:\phpstudy_pro\Extensions\php\profile"
xdebug.remote_autostart=1
xdebug.remote_enable=1
;xdebug.remote_handler=dbgp
;xdebug.remote_mode=req
xdebug.remote_port=9000
xdebug.remote_host=localhost
;xdebug.idekey="intellij"
2 chrom 安装
3 IDEA 配置
debug配置
配置内置webserver
设置断点 运行
输入地址