0

一直无法让 xdebug 在 MAMP 中工作 - 看起来不错,但我无法让 codebug 或 netbeans 在端口上使用。

使用以下命令运行 MAMP:

Apache 2.2.23
MySQL 5.5.29
PHP 5.2.17 & 5.3.20 & 5.4.10
APC 3.1.10
eAccelerator 0.9.6.1
XCache 1.2.2 & 1.3.2
phpMyAdmin 3.5.5
SQLiteManager 1.2.4
Freetype 2.4.8
t1lib 5.1.2
curl 7.28.1
jpeg 8d
libpng-1.5.13
gd 2.0.34
libxml2 2.8.0
libxslt 1.1.28
gettext 0.18.1.1
libidn 1.17
iconv 1.14
mcrypt 2.5.8
YAZ 4.0.1 & PHP/YAZ 1.1.5

我的 PHP.ini 文件包括以下内容:

xdebug.default_enable=on
xdebug.remote_enable=on
xdebug.remote_autostart=on
zend_extension="/Applications/MAMP/bin/php/php5.2.17/lib/php/extensions/no-debug-non-zts-        20060613/xdebug.so"

尝试使用和不使用额外的 xdebug 设置,只添加它们是因为我的 phpinfo 文件显示了 xdebug.remote_enable=off 之类的值(可能是问题?)

我的 PHPInfo 文件显示以下内容:

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    with XCache v1.2.2, Copyright (c) 2005-2007, by mOo
    with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans


xdebug support  enabled
Version 2.2.1
IDE Key Martin

Supported protocols Revision
DBGp - Common DeBuGger Protocol $Revision: 1.145 $

Directive   Local Value Master Value
xdebug.auto_trace   Off Off
xdebug.cli_color    0   0
xdebug.collect_assignments  Off Off
xdebug.collect_includes On  On
xdebug.collect_params   0   0
xdebug.collect_return   Off Off
xdebug.collect_vars Off Off
xdebug.coverage_enable  On  On
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.file_link_format no value    no value
xdebug.idekey   no value    no value
xdebug.max_nesting_level    100 100
xdebug.overload_var_dump    On  On
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  /var/tmp/   /var/tmp/
xdebug.profiler_output_name cachegrind.out.%p   cachegrind.out.%p
xdebug.remote_autostart Off Off
xdebug.remote_connect_back  Off Off
xdebug.remote_cookie_expire_time    3600    3600
xdebug.remote_enable    Off Off
xdebug.remote_handler   dbgp    dbgp
xdebug.remote_host  localhost   localhost
xdebug.remote_log   no value    no value
xdebug.remote_mode  req req
xdebug.remote_port  9000    9000
xdebug.scream   Off Off
xdebug.show_exception_trace Off Off
xdebug.show_local_vars  Off Off
xdebug.show_mem_delta   Off Off
xdebug.trace_enable_trigger Off Off
xdebug.trace_format 0   0
xdebug.trace_options    0   0
xdebug.trace_output_dir /var/tmp/   /var/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

已将 Netbeans 配置如下:

https://netbeans.org/kb/docs/php/configure-php-environment-mac-os.html

代码错误如下:

http://www.codebugapp.com/documentation/

两者都没有接港口。

防火墙已关闭。

提前致谢。

4

1 回答 1

1

给自己提供了我在这里找到的答案的线索:

无法更改 XDEBUG 配置 [xdebug.remote_enable]

我编辑了错误的 PHP.ini 文件——尽管我仍然需要额外的 xdebug 值

正在编辑

/Applications/MAMP/conf/php5.2.17/php.ini

应该是什么时候

/Applications/MAMP/bin/php/php5.3.6/conf/php.ini
于 2013-05-28T21:54:59.250 回答