【问题标题】:Installing Xdebug in Eclipse on Mac在 Mac 上的 Eclipse 中安装 Xdebug
【发布时间】:2014-03-30 21:38:37
【问题描述】:

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

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/”

另外,我有 Komodo-PHPRemoteDubgging 并替换了 /Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so 中的 xdebug.so 文件/p>

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

不过,当我尝试在 Eclipse 上以调试模式运行我的 Web 应用程序时,它会在 57% 处停止。

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

【问题讨论】:

    标签: php eclipse macos xdebug


    【解决方案1】:

    好的,我想我已经找到了自己问题的答案。我已将 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
    

    我不知道有什么区别,但现在它似乎终于起作用了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-04-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-01
      相关资源
      最近更新 更多