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 ...
随机推荐
- Sublime 插件安装
转http://www.cnblogs.com/Rising/p/3741116.html
- 做一个正气的杭电人--hdu2500
做一个正气的杭电人 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total S ...
- oc语言--BLOCK和协议
一.BOLCK (一)简介 BLOCK是什么?苹果推荐的类型,效率高,在运行中保存代码.用来封装和保存代码,有点像函数,BLOCK可以在任何时候执行. BOLCK和函数的相似性:(1)可以保存代码(2 ...
- asp.net mvc4 signalR后台自推送
1.在引用中添加signalr后首选要引入Startup.cs类,在VS2012中添加Signalr后没有Startup.cs类然后就会报错 代码如下 using System; using Syst ...
- ajax请求解析springmvc返回的json数据
需要使用的框架 spring3.0 jquery1.9.0(简化ajax开发的js库) Jackson(json处理器):jackson-core-asl-1.9.2.jar,jackson-mapp ...
- js加载优化-二
http://www.cnblogs.com/radom/archive/2011/04/26/2028886.html ontrolJS 主要为了是解决网页加载中Js文件的性能问题,ControlJ ...
- linux下休眠/待机命令
http://blog.csdn.net/hshl1214/article/details/6228275
- Bash Shell 快捷键的学习使用
原文地址: http://dbanotes.net/tech-memo/shell_shortcut.html 这篇 Bash Shell Shortcuts 的快捷键总结的非常好.值得学习.下面内容 ...
- LeeCode-Remove Element
Given an array and a value, remove all instances of that value in place and return the new length. T ...
- FTA
FTA - 维基百科,自由的百科全书 FTA 维基百科,自由的百科全书 跳转至: 导航. 搜索 FTA可以指: 自由贸易协定(Free Trade Agreement) 自由贸易区(Free Tr ...