在phpstudy开启XDbug

设置php.ini, 在最后加上

有的我已经有了的,把dll文件目录改改
[XDebug]
xdebug.profiler_output_dir=“D:\phpStudy\PHPTutorial\tmp\xdebug”
xdebug.trace_output_dir=“D:\phpStudy\PHPTutorial\tmp\xdebug”
zend_extension=“D:\phpStudy\PHPTutorial\php\php-5.4.45\ext\php_xdebug.dll”
xdebug.auto_trace=On
xdebug.collect_params=On
xdebug.collect_return=On
xdebug.profiler_enable=On
xdebug.remote_enable=On
xdebug.idekey=PHPSTORM

然后重启apache, 看看phpinfo()有没有成功开启,懒得截图了,再去设置phpstorm
PHP——XDebug
PHP——XDebug
PHP——XDebug
PHP——XDebug
网上有个坑爹的叫我添加php remote debug,辣鸡,

下载xdebug help插件,自行百度即可

调试快捷键
F7 通过当前行,进入下一行,如果该行是方法,则进入方法体
F8 通过当前行,进入下一行,如果该行是方法,也直接进入下一行,不进入方法体
F9 通过整个流程,全部顺序执行

相关文章:

  • 2021-06-02
  • 2021-08-09
  • 2022-12-23
  • 2022-12-23
  • 2021-09-28
  • 2021-06-17
  • 2021-08-11
猜你喜欢
  • 2022-01-07
  • 2022-12-23
  • 2021-07-13
  • 2021-11-03
  • 2021-12-22
  • 2022-01-14
  • 2021-08-29
相关资源
相似解决方案