PHP配置xdebug
其实已经做PHP超过2年了,但是今天特别有感触,所以把过程写在这里
环境是win7+apache2.2+php5.3,因为某种原因,必须使用这个版本.
然后就死活配置不出来.apache日志如下:
[Fri Dec 23 00:23:12 2016] [notice] Parent: Received restart signal -- Restarting the server.
Failed loading php_xdebug-2.2.7-5.3-vc9.dll
8: Exit event signaled. Child process is ending.
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.100 for ServerName
[Fri Dec 23 00:23:12 2016] [notice] Digest: generating secret for digest authentication ...
[Fri Dec 23 00:23:12 2016] [notice] Digest: done
[Fri Dec 23 00:23:13 2016] [notice] Child 8608: Released the start mutex
[Fri Dec 23 00:23:14 2016] [notice] Apache/2.2.22 (Win32) DAV/2 mod_ssl/2.2.22 OpenSSL/0.9.8t PHP/5.3.29 configured -- resuming normal operations
[Fri Dec 23 00:23:14 2016] [notice] Server built: Jan 28 2012 11:16:39
[Fri Dec 23 00:23:14 2016] [notice] Parent: Created child process 14436
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.100 for ServerName
[Fri Dec 23 00:23:14 2016] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri Dec 23 00:23:14 2016] [notice] Child 8608: All worker threads have exited.
[Fri Dec 23 00:23:14 2016] [notice] Child 8608: Child process is exiting
Failed loading php_xdebug-2.2.7-5.3-vc9.dll
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.100 for ServerName
[Fri Dec 23 00:23:15 2016] [notice] Digest: generating secret for digest authentication ...
[Fri Dec 23 00:23:15 2016] [notice] Digest: done
[Fri Dec 23 00:23:16 2016] [notice] Child 14436: Child process is running
[Fri Dec 23 00:23:16 2016] [notice] Child 14436: Acquired the start mutex.
[Fri Dec 23 00:23:16 2016] [notice] Child 14436: Starting 64 worker threads.
[Fri Dec 23 00:23:16 2016] [notice] Child 14436: Starting thread to listen on port 80.
然后经过网上好一顿查,大概花了三个小时,终于找到一个工具
这工具只要把phpinfo()打印出来的东西,复制进去,就能告诉你为什么xdebug加载不了。
得到的回复我没有保存下来,但我通过这个知道,我的apache是vc9编译的,我选的是thread(也就是线程安全),然后虽然我是64位系统,但我的apache是32位的。
然后我就去xdebug官网下载了适合的版本。终于xdebug出现了。

最后。这地方我不知道网上为什么大部分教程这个地方都是文件名而不是路径,我的没有路径是行不通的。
zend_extension=C:\Develop\php53\ext\php_xdebug-2.2.7-5.3-vc9.dll
xdebug.profiler_enable=on
xdebug.auto_trace=on
xdebug.collect_params=on
xdebug.collect_return=on
xdebug.show_exception_trace = On
xdebug.remote_autostart = On
xdebug.remote_enable = On
xdebug.collect_vars = On
xdebug.remote_handler = dbgp
xdebug.remote_host= localhost
xdebug.remote_port = 9000
xdebug.idekey = PHPSTORM
感触
1:重点是开源项目一定要读文档,无论多大年纪,只要想做编程,就要好好学英语!
2:使用软件,如果出问题,一定要查日志,切记切记!
3:成熟软件没有解决不了的问题,一定要耐心,切记切记!
PHP配置xdebug的更多相关文章
- 【总结1】PhpStorm配置XDebug(远程)调试PHP
配置PhpStorm调试PHP 第一步:配置 XDebug 下载安装XDebug到本地环境,打开php.ini,参考配置如下: [XDebug] zend_extension = "D:\P ...
- Zend studio 10.6 配置XDEBUG
1. 查看PHP版本,下载XDebug 然后去网站http://xdebug.org/download.php下载相应的XDEBUG, 把下载好的文件放到相应的PHP下的EXT目录下,替换之前 ...
- ZendStudio调试配置(XDebug)
服务器配置:WAMP Sever 3.0.0 调试器环境:Zend Studio 12.0 Build ID: 12.0.0.v20141117-20141115-2331-278 License: ...
- 使用zend studio配置Xdebug调试PHP教程
这里看过上面的文章后写一下自己的想法. 最近安装了zend studio 10.5,下载了破解文件.开始是下载了10.0的版本,但是注册码不正确.所以只能安装最新的10.5了. 接下来进行PHP代码调 ...
- PHPStorm配置Xdebug官方文档
1 配置Xdebug 下载Xdebug 下载与您的PHP版本兼容的Xdebug扩展,并将其保存在该php/文件夹中. php/文件夹 的位置是在安装PHP引擎期间定义的. 如果您使用的是AMP软件包, ...
- 安装配置Xdebug模块详解
1.XDebug安装配置 (1)下载XDebug下载地址:http://www.xdebug.org/必须下载跟机器上安装的php匹配的版本才行.具体下载方法如下:将phpinfo网页的源代码拷贝到h ...
- PHPStorm配置xdebug(phpStudy/wamp)
一.下载并配置XDebug wamp环境: 1.获取xdebug
- Mac环境下PHPstorm配置xdebug开发调试web程序
一.安装PHP的xdebug扩展 安装xdebug(技巧,为了找到适配的版本,让xdebug网站根据phpinfo()函数输出分析找到对应的方法及安装步骤:如果安装了多个PHP版本的话,尽量用phpi ...
- phpstorm调试配置 Xdebug
这已经楼主第二次因为phpstorm的调试配置折腾了几个小时,这次一定要记下来!!! 以Xdebug chrome浏览器为例 一:安装 JetBrains IDE Support 二:安装 Xdebu ...
- 在windows10环境下给PHPStorm配置xdebug断点调试功能
笔者的开发环境: wampserver2.5系统环境包 操作系统:windows10 64位专业版. php版本:php5.512 Apache版本:2.49 好了下面介绍,phpstorm配置xde ...
随机推荐
- php静态属性和静态方法
php静态属性和静态方法 2012-09-29 10:18 1518人阅读 评论(0) 收藏 举报 phpfunction 本php教程主要是学习php中静态属性和静态方法的使用方法和基本的示例. · ...
- 火星A+B..(不贴代码了)
还是A+B Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submi ...
- python学习资料
http://woodpecker.org.cn/diveintopython/ http://www.cnblogs.com/txw1958/archive/2012/12/10/A_Byte_of ...
- UltraEdit的语法高亮显示配置
今天吴同学看到我电脑中有UltraEdit好奇地问我会不会用,我那个汗啊,不会用我装它干什么啊?其实当时装UltraEdit主要是用来写Java的,没有想到,工作一忙顾及不上学习Java的事情了.于是 ...
- WPF笔记(2.3 StackPanel)——Layout
原文:WPF笔记(2.3 StackPanel)--Layout StackPanel用于小规模的排版布局,比如说一个局部下几个textbox和Button啦.Orientation属性有Vertic ...
- JS扩展方法
JS扩展方法与C#的扩展方法非常相似,也是可以链式调用的,也是通过对某个类的扩展写法来实现.这个东西非常好用,如果将预先写好的方法放到一个js里面引用的话,那么后面写js将非常有趣. 下面给出一个例子 ...
- [置顶] SPL讲解(6)--Condition篇
SmartPersistenceLayer 2.0 之 Condition篇 原理 强大的Condition功能是SPL的一个特性,可以使用Condition完成绝大部分的条件定义,使用 ...
- UESTC_Tournament CDOJ 124
A sports company is planning to advertise in a tournament. It is a single round-robin tournament, th ...
- android笔试题集2
1.请谈一下Android系统的架构.答:Android系统采用了分层架构,从高层到低层分别是应用程序层.应用程序框架层.系统运行库层和linux核心层. 2.谈谈android大众常用的五种布局.答 ...
- Java - 网络编程(NetWork)
Java - 网络编程(NetWork) 一.java.net包下的 InetAddress 类的使用: > 一个 InetAddress 代表着一个IP地址 > 主要 ...