2014-02-27 71 views
0

我一整天都在努力让Xdebug在我的Mac上使用Eclipse Helios for php。我已经重写了位于/Applications/MAMP/bin/php/php5.5.3/conf/php.ini的php.ini文件,如下所示;在Mac上的Eclipse中安装Xdebug

zend_extension="/Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts-  20121212/xdebug.so" 
xdebug.remote_enable = On 
xdebug.remote_handler = dbgp 
xdebug.remote_mode = req 
xdebug.remote_host = localhost 
xdebug.remote_port = 9000 
xdebug.idekey = 
xdebug.profiler_enable = On 
xdebug.profiler_output_dir = “/Applications/MAMP/tmp/xdebug/” 

另外,我有科莫多-PHPRemoteDubgging和/Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts-20121212/取代xdebug.so文件xdebug.so

如果我查看phpInfo(),我可以找到术语Xdebug。

不过,当我尝试在调试模式下在eclipse上运行我的web应用程序时,它停在57%。

有人可以帮我解决这个问题吗?

回答

0

好的,我想我得到了我自己的问题的答案。我用下面的内容替换了php.ini文件中的[xdebug]下的内容;

[Xdebug的]

zend_extension="/Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so" 
xdebug.remote_enable=On 
xdebug.remote_host=localhost 
xdebug.remote_port=9000 
xdebug.remote_handler=dbgp 
xdebug.remote_mode=req 
xdebug.remote_autostart=Off 
xdebug.profiler_enable = On 
xdebug.profiler_dir = “/Applications/MAMP/tmp” 
xdebug.collect_vars=on 
xdebug.collect_params=4 
xdebug.dump_globals=on 
xdebug.dump.GET=* 
xdebug.dump.POST=* 
xdebug.show_local_vars=on 

我不知道有什么区别,但现在似乎终于工作。