使用Aptana和Zend Framework进行远程XDebug

时间:2013-08-15 16:58:15

标签: zend-framework aptana xdebug

好的,我正在为此而自杀。我一直在尝试每一个教程,但仍然没有运气。 Aptana只是“等待XDebug Session”。

我在端口9000上的远程服务器上安装了XDebug。

xdebug.remote_enable=On
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
xdebug.remote_mode="jit"

这一切似乎都是正确的,phpinfo使它看起来正确。现在我进入Aptana进行设置,所有教程都以某种方式涉及localhost。也许我正在严重忽略xdebug的一个组件(它只能调试本地吗?)。目前无法让我的应用程序在本地运行,因为我正在运行非传统的堆栈项,我不想为此安装。

我已经设置了aptana php解释器:http://grab.by/poMm 我使用我的基本URL和本地文件文档根设置了aptana远程服务器 我使用密钥ECLIPSE_DBGP打开了chrome xdebug helper

Aptana仍在等待XDebug会话。请帮忙!

1 个答案:

答案 0 :(得分:0)

这是我(工作)php.ini的相关部分:

zend_extension=/usr/local/zend/lib/php_extensions/xdebug.so
xdebug.remote_enable=on
xdebug.remote_log="/var/log/xdebug.log"
xdebug.remote_host=localhost
xdebug.remote_handler=dbgp
xdebug.remote_port=9000
xdebug.remote_autostart=1
xdebug.remote_connect_back=1

请注意,您的配置与我的配置存在一些差异:

  • 你用引号
  • 附上你的许多变种
  • “On”应该是“on”(不带引号)
  • 没有引用auto_start或connnect_back

尝试进行这些更改,看看是否适合您。