分享web开发知识

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

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

phpstudy+phpstorm+debug

发布时间:2023-09-06 01:23责任编辑:彭小芳关键词:debugphpstorm

文:phpstudy+phpstorm+debug

一、配置前说明:

1、phpStudy集成了XDebug扩展,所以不用单独下载XDebug。 
2、打开XDebug扩展:其它选项菜单 > PHP扩展 > Xdebug 

二、配置步骤:

1、phpStudy当前版本: 

2、修改php.ini文件:

[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.6.27-nts\ext\php_xdebug.dll"xdebug.remote_enable =1xdebug.remote_handler = "dbgp"xdebug.idekey = PHPSTORMxdebug.remote_host = "127.0.0.1"xdebug.remote_port = 9000
 ;是否允许Xdebug跟踪函数调用,跟踪信息以文件形式存储,默认值为0xdebug.auto_trace=1;是否允许Xdebug跟踪函数参数,默认值为0xdebug.collect_params=1;是否允许Xdebug跟踪函数返回值,默认值为0xdebug.collect_return=1;函数调用跟踪信息输出文件目录,默认值为/tmpxdebug.trace_output_dir ="D:\myworkVIP\phpstudy\tmp\xdebug";性能分析文件的存放位置,默认值为/tmpxdebug.profiler_output_dir ="D:\myworkVIP\phpstudy\tmp\xdebug";打开xdebug的性能分析器,以文件形式存储,这项配置是不能以ini_set()函数配置的,默认值为0xdebug.profiler_enable = 1;性能分析文件的命名规则,默认值为cachegrind.out.%pxdebug.profiler_output_name = "cachegrind.out.%t.%p"xdebug.remote_enable = 1;用于zend studio远程调试的应用层通信协议xdebug.remote_handler = "dbgp"xdebug.idekey = PHPSTORMxdebug.remote_host = "127.0.0.1"xdebug.remote_port = 9000 

3、选择PHP版本: 

4、Debug端口: 

5、IDEKEY: 

6、配置: 

7、查看配置: 



三、调试:

1、开启调试: 

phpstudy+phpstorm+debug

原文地址:http://www.cnblogs.com/lonelyxmas/p/7812131.html

知识推荐

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