phpstorm配置xdebug调试php
1 先用phpinfo()函数 查看当前php版本相关信息
可以看到 是x86 vc15 然后去xdebug官网 下载相应版本的 插件,并复制粘贴到php\ext文件夹下面
2 在php.ini文件中最下边添加如下代码
[XDebug]
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir =“D:phpStudytmpxdebug”
xdebug.trace_output_dir =“D:phpStudytmpxdebug”
xdebug.profiler_output_name = “cache.out.%t-%s”
xdebug.remote_enable = 1
xdebug.remote_mode = “req”
xdebug.remote_handler = “dbgp”
xdebug.remote_host = “127.0.0.1”
xdebug.remote_port = 9001
xdebug.idekey=“PHPSTORM”
xdebug.remote_autostart = no
#注意最下边这行是 xdebug dll文件的路径
zend_extension = “D:\wamp\php\ext\php_xdebug-2.9.6-7.2-vc15-nts.dll”
3 配置phpstorm