Xdebug安装,但不显示在Phpinfo为Xampp [英] Xdebug installed but does not display in Phpinfo for Xampp

查看:634
本文介绍了Xdebug安装,但不显示在Phpinfo为Xampp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac Mountain Lion oSX 10.8.2上有最新的Xampp和Php 5.3。我刚安装Xdebug并在php.ini中配置它。我从链接下载,并按照说明进行操作。还在php.ini中放入以下条目

  [Xdebug] 
zend_extension =/ Applications / XAMPP / xamppfiles / lib / php / php-5.3.1 / extensions / no-debug-non-zts-20090626 / xdebug.so
xdebug.remote_port = 9000
xdebug.profiler_enable = 1
xdebug。 profiler_output_dir =/ Applications / XAMPP / xamppfiles / temp
xdebug.remote_handler =dbgp
xdebug.remote_host =localhost
xdebug.remote_enable = On
xdebug.trace_output_dir =/ Applications / XAMPP / xamppfiles / temp

Php -m显示Xdebug模块,但phpinfo ()不显示Xdebug。阅读解决方案的问题为什么xdebug没有显示在phpinfo()没有xdebug在phpinfo(),它不适用于我。 注意:我已经从Xampp Control多次重新启动了Apache。



b
$ b


  1. 任何方法来纠正这个问题?

  2. Xdebug是否仍然可以在我的Eclipse Studio上工作?

  3. 我允许httpd访问Moutain Lion上的Xdebug?

谢谢。

解决方案

所以这更是山狮的港口问题。默认情况下,9000由Mac分配用于防火墙的东西,并且它为一个或另一个事物分配不同的端口。我在Mac上使用网络实用程序端口扫描检查可用的端口。另外运行下面描述的php脚本可以提供一些调试信息,如这里





详细配置Eclipse部分从这个堆栈溢出问题帮助最多。


I have the latest Xampp and Php 5.3 on Mac Mountain Lion oSX 10.8.2. I just installed Xdebug and configured it in the php.ini. I downloaded from this link and followed the instructions. Also put the following entries in php.ini

[Xdebug]
zend_extension="/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/xdebug.so"
xdebug.remote_port = 9000
xdebug.profiler_enable = 1
xdebug.profiler_output_dir = "/Applications/XAMPP/xamppfiles/temp"
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
xdebug.remote_enable = On
xdebug.trace_output_dir = "/Applications/XAMPP/xamppfiles/temp"

Php -m displays the Xdebug modules but the phpinfo() does not show Xdebug. Read the solutions to questions Why is xdebug not showing up in phpinfo() and No xdebug in phpinfo() and it does not work for me. Note: I have restarted my Apache from Xampp Control multiple times.

Suggestions on

  1. Any ways to rectify this?
  2. Would Xdebug still work for me on my Eclipse Studio?
  3. How can I provide permission to httpd to access Xdebug on Moutain Lion?

Thanks.

解决方案

So this was more of a port issue on Mountain Lion. By default 9000 is assigned by Mac for firewall stuff and it kept assigning various ports for one or the other thing. I utilized Network Utility Port Scan on Mac to check for available ports. Also running the php script described below may give some debugging info as provided here

The detailed Configuring Eclipse part from this Stack Overflow Question helped the most.

这篇关于Xdebug安装,但不显示在Phpinfo为Xampp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆