phpStrom利用Xdebug调试运行在PhpStudy里的php程序

1、安装phpStrom

2、安装phpStudy

2.1 配置php.ini文件

找到关于[Xdebug] ,涉及到路径修改为你自己的安装路径

[Xdebug]
zend_extension=D:/phpstudy_pro/Extensions/php/php7.3.4nts/ext/php_xdebug.dll
xdebug.collect_params=1
xdebug.collect_return=1
xdebug.auto_trace=On
xdebug.trace_output_dir=D:/phpstudy_pro/Extensions/php_log/php7.3.4nts.xdebug.trace
xdebug.profiler_enable=On
xdebug.profiler_output_dir=D:/phpstudy_pro/Extensions/php_log/php7.3.4nts.xdebug.profiler
xdebug.remote_enable=Off
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.idekey = PHPSTORM
xdebug.mode=debug

3、配置phpstrom

3.1.php配置

3.2.服务器配置

3.3 DBGp代理设置

3.4 调试配置

点击应用后,点击确定完成配置。

4. 创建调试的项目

创建调试的php项目要放在phpStudy这个程序的安装目录下WWW文件夹下。

4.1 创建debugPhp调试文件

4.2 启动PhpStudy程序

4.3  配置phpStrom服务器

4.4 验证

5. debug 调试

5.1 phpstrom配置

开启debug侦听按钮。

5.2 浏览器访问

5.3 PhpStrom Debug调试

如有错误,肯请批评,并更正。谢谢!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值