0

I'm trying to setup php debugging on my mac. I'm using eclipse together with xdebug. The application runs on a mamp server

here is my .ini

[xdebug]
zend_extension="/Applications/MAMP/bin/php/php5.4.4/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9001
xdebug.remote_autostart=1

and here my eclipse debugger setup

Debug Port                9001
Accept remote session     Any

I have also checked if port 9001 is occupied by another application, but only eclipse is running there:

sudo lsof -i :9001
COMMAND   PID     USER    FD   TYPE              DEVICE  SIZE/OFF  NODE  NAME
eclipse   25648   auser  187u  IPv6  0x7c95b5b345ac5873       0t0   TCP  *:etlservicemgr (LISTEN)

Any suggestions what I could be missing?

4

1 回答 1

3

原来我只是在编辑错误的 .ini 文件。

是正确的

/Applications/MAMP/bin/php/php5.4.10/conf/php.ini

我正在编辑这个:

/Applications/MAMP/conf/php5.4.10/php.ini
于 2013-06-18T07:50:18.270 回答