在OS X上使用Aptana Studio和Xdebug或Zend调试器进行Php调试

时间:2022-10-15 18:34:24

Have you managed to get Aptana Studio debugging to work? I tried following this, but I don't see Windows -> Preferences -> Aptana -> Editors -> PHP -> PHP Interpreters in my menu (I have PHP plugin installed) and any attempt to set up the servers menu gives me "socket error" when I try to debug. Xdebug is installed, confirmed through php info.

您是否设法让Aptana Studio调试工作?我尝试了这个,但我没有在我的菜单中看到Windows - >首选项 - > Aptana - >编辑器 - > PHP - > PHP解释器(我安装了PHP插件),任何设置服务器菜单的尝试都给了我“套接字错误“当我尝试调试时。 Xdebug已安装,通过php info确认。

3 个解决方案

#1


3  

I've been using ZendDebugger with Eclipse (on OS X) for a while now and it works great!

我一直在使用ZendDebugger和Eclipse(在OS X上)一段时间,它运行得很好!

Here's the recipe that's worked well for me.

这是适合我的配方。

  1. install Eclipse PDT via "All in one" package at: http://www.zend.com/en/community/pdt
  2. 通过“All in one”软件包安装Eclipse PDT,网址为:http://www.zend.com/en/community/pdt

  3. install ZendDebugger.so (http://www.zend.com/en/community/pdt)
  4. 安装ZendDebugger.so(http://www.zend.com/en/community/pdt)

  5. configure your php.ini w/ the ZendDebugger extenssion (info below)
  6. 配置你的php.ini w / ZendDebugger extenssion(以下信息)

Configuring ZendDebugger:

  1. edit php.ini
  2. add the following:

    添加以下内容:

    [Zend]
    zend_extension=/full/path/to/ZendDebugger.so
    zend_debugger.allow_hosts=127.0.0.1
    zend_debugger.expose_remotely=always
    zend_debugger.connector_port=10013

    [Zend] zend_extension = / full / path / to / ZendDebugger.so zend_debugger.allow_hosts = 127.0.0.1 zend_debugger.expose_remotely = always zend_debugger.connector_port = 10013

Now run "php -m" in the command line to output all the installed modules. If you see the following then its installed just fine

现在在命令行中运行“php -m”以输出所有已安装的模块。如果您看到以下内容,那么它的安装就好了

[Zend Modules]  
Zend Debugger

Now restart Apache so that it reloads PHP w/ the ZendDebugger. Create a dummy page with in it and examine the output to make sure the PHP apache module picked up ZendDebugger as well. If it's setup right you will see something like the following text somewhere in phpinfo()'s output.

现在重新启动Apache,以便它重新加载PHP和ZendDebugger。在其中创建一个虚拟页面并检查输出以确保PHP apache模块也选择了ZendDebugger。如果设置正确,你会在phpinfo()的输出中看到类似下面的文字。

with Zend Debugger v5.2.14, Copyright (c) 1999-2008, by Zend Technologies

Zend Technologies的Zend Debugger v5.2.14,版权所有(c)1999-2008

OK - but you wanted Aptana Studio... at this point I install the Aptana Studio Plugin into the PDT build of Eclipse. The instructions for that are at: http://www.aptana.com/docs/index.php/Plugging_Aptana_into_an_existing_Eclipse_configuration

好的 - 但你想要Aptana Studio ......此时我将Aptana Studio插件安装到Eclipse的PDT版本中。有关的说明,请访问:http://www.aptana.com/docs/index.php/Plugging_Aptana_into_an_existing_Eclipse_configuration

That setup has served me well for a while - hopefully it helps you too

这种设置很好地帮助了我一段时间 - 希望它也可以帮到你

-Arin

#2


2  

This is not related to Aptana Studio, but if you are looking for a PHP XDebug debugger client on OS X, you can try MacGDBp (Free/GPL).

这与Aptana Studio无关,但如果您在OS X上寻找PHP XDebug调试器客户端,您可以尝试使用MacGDBp(Free / GPL)。

#3


0  

I realize that this is a old thread but I was having the same problem with Aptana Studio 3 and FireFox. If anyone is having this problem make sure that FireFox has FireBug V1.8.X installed, any other version might give you the same problem...

我意识到这是一个老线程,但我遇到了与Aptana Studio 3和FireFox相同的问题。如果有人遇到此问题,请确保FireFox安装了FireBug V1.8.X,任何其他版本都可能会给您带来同样的问题......

Hope this helps

希望这可以帮助

#1


3  

I've been using ZendDebugger with Eclipse (on OS X) for a while now and it works great!

我一直在使用ZendDebugger和Eclipse(在OS X上)一段时间,它运行得很好!

Here's the recipe that's worked well for me.

这是适合我的配方。

  1. install Eclipse PDT via "All in one" package at: http://www.zend.com/en/community/pdt
  2. 通过“All in one”软件包安装Eclipse PDT,网址为:http://www.zend.com/en/community/pdt

  3. install ZendDebugger.so (http://www.zend.com/en/community/pdt)
  4. 安装ZendDebugger.so(http://www.zend.com/en/community/pdt)

  5. configure your php.ini w/ the ZendDebugger extenssion (info below)
  6. 配置你的php.ini w / ZendDebugger extenssion(以下信息)

Configuring ZendDebugger:

  1. edit php.ini
  2. add the following:

    添加以下内容:

    [Zend]
    zend_extension=/full/path/to/ZendDebugger.so
    zend_debugger.allow_hosts=127.0.0.1
    zend_debugger.expose_remotely=always
    zend_debugger.connector_port=10013

    [Zend] zend_extension = / full / path / to / ZendDebugger.so zend_debugger.allow_hosts = 127.0.0.1 zend_debugger.expose_remotely = always zend_debugger.connector_port = 10013

Now run "php -m" in the command line to output all the installed modules. If you see the following then its installed just fine

现在在命令行中运行“php -m”以输出所有已安装的模块。如果您看到以下内容,那么它的安装就好了

[Zend Modules]  
Zend Debugger

Now restart Apache so that it reloads PHP w/ the ZendDebugger. Create a dummy page with in it and examine the output to make sure the PHP apache module picked up ZendDebugger as well. If it's setup right you will see something like the following text somewhere in phpinfo()'s output.

现在重新启动Apache,以便它重新加载PHP和ZendDebugger。在其中创建一个虚拟页面并检查输出以确保PHP apache模块也选择了ZendDebugger。如果设置正确,你会在phpinfo()的输出中看到类似下面的文字。

with Zend Debugger v5.2.14, Copyright (c) 1999-2008, by Zend Technologies

Zend Technologies的Zend Debugger v5.2.14,版权所有(c)1999-2008

OK - but you wanted Aptana Studio... at this point I install the Aptana Studio Plugin into the PDT build of Eclipse. The instructions for that are at: http://www.aptana.com/docs/index.php/Plugging_Aptana_into_an_existing_Eclipse_configuration

好的 - 但你想要Aptana Studio ......此时我将Aptana Studio插件安装到Eclipse的PDT版本中。有关的说明,请访问:http://www.aptana.com/docs/index.php/Plugging_Aptana_into_an_existing_Eclipse_configuration

That setup has served me well for a while - hopefully it helps you too

这种设置很好地帮助了我一段时间 - 希望它也可以帮到你

-Arin

#2


2  

This is not related to Aptana Studio, but if you are looking for a PHP XDebug debugger client on OS X, you can try MacGDBp (Free/GPL).

这与Aptana Studio无关,但如果您在OS X上寻找PHP XDebug调试器客户端,您可以尝试使用MacGDBp(Free / GPL)。

#3


0  

I realize that this is a old thread but I was having the same problem with Aptana Studio 3 and FireFox. If anyone is having this problem make sure that FireFox has FireBug V1.8.X installed, any other version might give you the same problem...

我意识到这是一个老线程,但我遇到了与Aptana Studio 3和FireFox相同的问题。如果有人遇到此问题,请确保FireFox安装了FireBug V1.8.X,任何其他版本都可能会给您带来同样的问题......

Hope this helps

希望这可以帮助