PhpStorm Debug设置


本文摘自PHP中文网,作者(*-*)浩,侵删。

php 环境开启xdebug (推荐学习:phpstorm)

cj-308.png

到php.ini 下面查看下 xdebug的配置信息

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

[xdebug]

zend_extension ="c:/wamp64/bin/php/php5.6.35/zend_ext/php_xdebug-2.5.5-5.6-vc11-x86_64.dll"

;xdebug.remote_enable = off

xdebug.profiler_enable = off

xdebug.profiler_enable_trigger = off

xdebug.profiler_output_name = cachegrind.out.%t.%p

xdebug.profiler_output_dir ="c:/wamp64/tmp"

xdebug.show_local_vars=0

xdebug.remote_autostart = 1    # 这里加上远程自动开启,可以省去在浏览器中加载xdebug插件的步骤

 

xdebug.idekey=phpstorm

xdebug.remote_enable = On

xdebug.remote_host=localhost

;xdebug.remote_port默认值为9000,这里需要跟phpstorm配置一致,下面有说明

xdebug.remote_port=9000

xdebug.remote_handler=dbgp

xdebug.auto_trace = On

PhpStorm 配置debug设置

Language & Frameworks > PHP > Debug (把复选框选中去掉,端口默认9000)

cj-309.png

Language & Frameworks > PHP > Debug > Servers (添加多个可以调试的地址)

cj-310.png

开启PhpStorm Debug 监听连接

cj-311.png

以上就是PhpStorm Debug设置的详细内容,更多文章请关注木庄网络博客

相关阅读 >>

如何用phpstorm写html5

phpstorm运行出现404原因

超详细phpstorm+phpstudy开发环境配置

phpstorm的一些个性化配置

关于phpstorm的phpdoc comments注释生成器

如何在phpstorm中使用region(代码折叠)

phpstorm怎么设置中文版

如何在phpstorm上开发thinkphp项目

phpstorm服务器如何配置

phpstorm怎么连接docker容器内的php xdebug进行断点调试

更多相关阅读请进入《phpstorm》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...

    暂无评论...