我现在已经尝试过小时得到xDebug(2.0.5编制从源)的工作对我Air OS X//需要将物品寄6.8.我已经安装的甲基苯丙胺和运行一个小PHP(5.2)测试程序,没有问题。但是当我尝试试我得到这个文本//需要将物品寄:"等待连接(//需要将物品寄-xdebug)"并没有什么更多的情况。//需要将物品寄配置调试器的端口9000.没有Zend优化在甲基苯丙胺.

我有着这样的: http://netbeans.org/kb/docs/php/configure-php-environment-mac-os.html#installEnableXdebughttp://www.xdebug.org/docs/installhttp://forums.netbeans.org/topic1513-0-asc-0.html 等等

这里是我的一部分php.ini

[XDebug]

;zend_extension="/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so"

;[Zend]

;zend_optimizer.optimization_level=15

;zend_extension_manager.optimizer=/Applications/MAMP/bin/php5/zend/lib/Optimizer-3.3.9

;zend_optimizer.version=3.3.9

; Xdebug config for Mac OS X and NetBeans IDE

zend_extension=/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so

xdebug.remote_enable=1

xdebug.remote_handler=dbgp

xdebug.remote_mode=req

xdebug.remote_host=localhost

xdebug.remote_port=9000

xdebug.idekey="netbeans-xdebug"

我读了很多的安装说明等,并phpinfo显示,xDebug安装确定为V.5.2.11(见通过"开始页"在甲基苯丙胺).然而,当我试图在终端PHP-m我没有看到xdebug列出。我最后想PHP.INI读/等等所以我复制的甲基苯丙胺php.ini php.ini存在,因此增加了xdebug.se,localhost port9000等信息。在那之后xdebug是列出当我做PHP-m太多,但我还是内容的问题。奇怪的php-我出版5.2.10,不5.2.11如上!

我也尝试了这个,加入"//需要将物品寄-xdebug"为idekey: 为什么xdebug没有建立连接//需要将物品寄?

怎么PHP_INFO()似乎找到我的PHP.INI下的文件../甲基苯丙胺/...和不当做PMP-m当它是从读/等?

我怎么能得到PHP总能找到INI文件下的甲基苯丙胺,所以我没有必要使用两个PHP.INI文件等PHPINFO()and PHP-m的工作?

我如何可以解决内容的问题现在xDebug似乎是正确安装,但仍然不在工作//需要将物品寄?一些与此需要进行双重php.ini?可能我已经编制了xdebug错误,如何知道的?一些与php versions在xdebug/php?怎么检查?

这里是一个部分结果从php-i:

xdebug

xdebug support => enabled
Version => 2.0.4

Supported protocols => Revision
DBGp - Common DeBuGger Protocol => $Revision: 1.125.2.6 $
GDB - GNU Debugger protocol => $Revision: 1.87 $
PHP3 - PHP 3 Debugger protocol => $Revision: 1.22 $

Directive => Local Value => Master Value
xdebug.auto_trace => Off => Off
xdebug.collect_includes => On => On
xdebug.collect_params => 0 => 0
xdebug.collect_return => Off => Off
xdebug.collect_vars => Off => Off
xdebug.default_enable => On => On
xdebug.dump.COOKIE => no value => no value
xdebug.dump.ENV => no value => no value
xdebug.dump.FILES => no value => no value
xdebug.dump.GET => no value => no value
xdebug.dump.POST => no value => no value
xdebug.dump.REQUEST => no value => no value
xdebug.dump.SERVER => no value => no value
xdebug.dump.SESSION => no value => no value
xdebug.dump_globals => On => On
xdebug.dump_once => On => On
xdebug.dump_undefined => Off => Off
xdebug.extended_info => On => On
xdebug.idekey => pettermagnusson => netbeans-xdebug
xdebug.manual_url => http://www.php.net => http://www.php.net
xdebug.max_nesting_level => 100 => 100
xdebug.profiler_aggregate => Off => Off
xdebug.profiler_append => Off => Off
xdebug.profiler_enable => Off => Off
xdebug.profiler_enable_trigger => Off => Off
xdebug.profiler_output_dir => /tmp => /tmp
xdebug.profiler_output_name => cachegrind.out.%p => cachegrind.out.%p
xdebug.remote_autostart => Off => Off
xdebug.remote_enable => On => On
xdebug.remote_handler => dbgp => dbgp
xdebug.remote_host => 127.0.0.1 => 127.0.0.1
xdebug.remote_log => /tmp/xdebug.log => /tmp/xdebug.log
xdebug.remote_mode => req => req
xdebug.remote_port => 9000 => 9000
xdebug.show_exception_trace => Off => Off
xdebug.show_local_vars => Off => Off
xdebug.show_mem_delta => Off => Off
xdebug.trace_format => 0 => 0
xdebug.trace_options => 0 => 0
xdebug.trace_output_dir => /tmp => /tmp
xdebug.trace_output_name => trace.%c => trace.%c
xdebug.var_display_max_children => 128 => 128
xdebug.var_display_max_data => 512 => 512
xdebug.var_display_max_depth => 3 => 3

请选择 下午

有帮助吗?

解决方案 2

我从网上下载科莫多错xDebug.so,不管怎样也是我自己的构建是没有好。再次下载,现在其确定。哇,这花了我很多时间,没有人能够帮助无论是! / PM

其他提示

How come PHP_INFO() seemed to find my PHP.INI file under ../MAMP/... and not when doing PMP -m when it is read from /etc ?

phpinfo()使用甲基苯丙胺的PHP程序,而CLI使用您的操作系统之一。

How can I get PHP to always find the INI file under MAMP so I dont have to use two PHP.INI files to et PHPINFO() and PHP -m to work?

离开OS PHP不变,所以你没有问题的升级和调整的一个与MAMP bubled根据您的需要。

How can I resolve the NetBeans problem now that xDebug seems to be installed correctly but still not working in NetBeans? Something with this need for dual php.ini? Could I have compiled xdebug wrong, how to know? Something with php versions in xdebug / php? How to check?

下载MAMP的最新版本,其中包括Xdebug扩展编译并添加到您的php.ini

zend_extension="/Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so"
xdebug.remote_host=localhost
xdebug.remote_port=9001
xdebug.remote_enable=1
xdebug.idekey="netbeans-xdebug"
xdebug.remote_log="/Applications/MAMP/logs/xdebug.log"

我使用端口9001作为OSX似乎不喜欢默认。

我检查并重新检查所有的设置和安装说明,仍然就显得XDebug的没有工作。最后我重新启动我的Mac和它奇迹般地开始工作。也许这将帮助别人在相同的位置我。

这是为我工作

brew install php55-xdebug

  • 抓住ini的道路,然后再贴下的最后一个
    php -i | grep 'Configuration File'
    vim /usr/local/etc/php/5.5/php.ini

  • 添加以下

    zend_extension="/usr/lib/php/扩展/no-调试-非zts-20100525/xdebug.所以"

    xdebug.default_enable=1
    xdebug.remote_enable=1
    xdebug.remote_handler=用
    xdebug.remote_host=localhost
    xdebug.remote_port=9001
    xdebug.remote_autostart=1

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top