分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 技术分享

Phpstorm-Xdebug配置

发布时间:2023-09-06 01:08责任编辑:白小东关键词:配置debug

用的是phpstudy集成开发环境

1 xdebug关于Php.ini配置最后写上

php5的

[XDebug]

xdebug.profiler_append = 0

xdebug.profiler_enable = 1

xdebug.profiler_enable_trigger = 0

xdebug.profiler_output_dir="D:\phpStudy\tmp\xdebug"

xdebug.profiler_output_name = "cachegrind.out.%t-%s"

xdebug.remote_enable = 1

xdebug.remote_handler = dbgp

xdebug.remote_host= localhost

xdebug.remote_port = 9000

xdebug.trace_output_dir="D:\phpStudy\tmp\xdebug"

zend_extension="D:\phpStudy\php\php-5.5.38\ext\php_xdebug.dll"

xdebug.idekey= PHPSTROM

 ===============

php7

[XDebug]

xdebug.profiler_append = 0

xdebug.profiler_enable = 1

xdebug.profiler_enable_trigger = 0

xdebug.profiler_output_dir="D:\phpStudy\tmp\xdebug"

xdebug.profiler_output_name = "cachegrind.out.%t-%s"

xdebug.remote_enable = 1

xdebug.remote_handler = dbgp

xdebug.remote_host= localhost

xdebug.remote_port = 9000

xdebug.trace_output_dir="D:\phpStudy\tmp\xdebug"

zend_extension="D:\phpStudy\php\php-7.0.12-nts\ext\php_xdebug.dll"

xdebug.idekey= PHPSTROM

 记得开启扩展

2 xdebug的配置和php.ini一致

3    xdebug的DBGp配置默认的这些

3.    xdebug的配置服务2钟方式

一种是在右上角按  配置

一种是直接在配置里面设置

配置chrom的debug(参考)

http://download.csdn.net/detail/erisern2/9470496

4    xdebug最后

选好右上角的配置,然后设置断点,断点记得一定要选好位置,不要选在空白处,不然无法启动,选在类,函数开头,或者变量位置!!!!!!!!!!!!!!!!!!!启动小蜘蛛就可以了

多个配置则添加多个PHP web Application即可,配置完毕!!

Phpstorm-Xdebug配置

原文地址:http://www.cnblogs.com/wujunbin/p/7465413.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved