1、下载Xdebug

https://xdebug.org/


2、配置php

[xdebug]
zend_extension="D:\develop\PHP56\ext\php_xdebug-2.5.1-5.6-vc11-x86_64.dll"    #xdebug扩展的路径

xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.idekey="PHPSTORM"


3、配置phpstorm

1)新建php server

PHPStorm配置Xdebug调试


2)debug配置


PHPStorm配置Xdebug调试


PHPStorm配置Xdebug调试


PHPStorm配置Xdebug调试


4、断点调试


PHPStorm配置Xdebug调试


点击右上角的爬虫图标运行程序

相关文章:

  • 2021-10-15
  • 2021-08-01
  • 2022-12-23
  • 2021-07-25
  • 2021-12-30
  • 2021-04-16
  • 2021-05-16
猜你喜欢
  • 2021-06-10
  • 2021-07-08
  • 2021-05-19
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2021-11-27
相关资源
相似解决方案