1.准备

PHPSTORM版本 : 8.0.3
PHP版本 : 5.5.12
xdebug版本:php_xdebug-2.2.5-5.5-vc11.dll
注 : php版本和xdebug版本一定要相对应。我这里用的是wampserver,PHP与xdebug均已下载。
* :下载xdebug地址

2.配置php.ini

找到php.ini所在的目录,在该文件的最后添加以下文本(如果已存在,要把前面的分号;去掉)

zend_extension = “c:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11.dll”

[xdebug]
xdebug.remote_enable = on
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = “c:/wamp/tmp”
xdebug.show_local_vars=0
xdebug.idekey = “PHPSTORM”
phpstorm+xdebug入门调试

查看Xdebug是否开启成功,打印一下phpinfo即可。php代码输出以下即可。

echo phpinfo();

phpstorm+xdebug入门调试

3.配置PhpStorm

run——edit configurations
phpstorm+xdebug入门调试

本地服务器配置:http://blog.csdn.net/knight_quan/article/details/51830683(如果配置过就忽略)

好了!点击昆虫就能跑起来了,跑到打断点的地方会弹出调试窗

相关文章:

  • 2022-12-23
  • 2021-11-21
  • 2021-11-27
  • 2021-11-27
  • 2021-11-27
  • 2021-11-27
  • 2021-12-20
  • 2021-09-24
猜你喜欢
  • 2021-11-12
  • 2021-07-14
  • 2021-11-27
  • 2021-04-23
  • 2021-06-30
  • 2022-01-24
相关资源
相似解决方案