1 先用phpinfo()函数 查看当前php版本相关信息
phpstorm配置xdebug调试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

相关文章:

  • 2021-10-16
  • 2021-11-27
  • 2021-10-04
  • 2021-11-12
  • 2021-11-27
  • 2021-11-27
猜你喜欢
  • 2021-11-27
  • 2021-11-21
  • 2021-11-10
  • 2021-06-10
  • 2021-08-07
  • 2021-07-25
  • 2018-05-13
  • 2021-11-27
相关资源
相似解决方案