在OS X上使用Aptana Studio和Xdebug或Zend调试器进行Php调试 [英] Php debugging with Aptana Studio and Xdebug or Zend debugger on OS X

查看:101
本文介绍了在OS X上使用Aptana Studio和Xdebug或Zend调试器进行Php调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您是否设法使Aptana Studio调试工作?我试过这样做,但是我看不到 Windows - >偏好 - > Aptana - >编辑 - > PHP - >在我的菜单(我有 PHP插件安装)中的PHP解释器),并且尝试设置服务器菜单时,我尝试调试 Xdebug 已安装,通过 php info 确认。

解决方案

我一直在使用ZendDebugger与Eclipse(在OS X上)一段时间,它的效果非常好!



这对我来说很好。


  1. 通过all in one包安装Eclipse PDT: http://www.zend.com/en/community/pdt

  2. 安装ZendDebugger .so( http://www.zend.com/en/community/pdt

  3. 配置您的php.ini w / ZendDebugger扩展(下面的信息)

配置ZendDebugger:


  1. 编辑php.ini

  2. 添加以下内容:



    [Zend]

    zend_extension = / full / path / to / ZendDebugger.so

    zend_debugger.allow_hosts = 127.0.0.1

    zend_debugger.expose_r emotely = always

    zend_debugger.connector_port = 10013


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

  [Zend Modules] 
Zend Debugger

现在重新启动Apache,以便它重新加载PHP / ZendDebugger。在其中创建一个虚拟页面,并检查输出,以确保PHP apache模块也可以使用ZendDebugger。如果设置正确,您将在phpinfo()的输出中看到类似以下文本的内容。 Zend Technologies的Zend Debugger v5.2.14版权所有(c)1999-2008,


blockquote>

OK - 但是你想要Aptana Studio ...在这一点上,我将Aptana Studio插件安装到Eclipse的PDT构建中。其说明如下: http://www.aptana.com/docs/index .php / Plugging_Aptana_into_an_existing_Eclipse_configuration



该设置为我服务了一段时间 - 希望它也可以帮助你



-Arin


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.

解决方案

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

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. install ZendDebugger.so (http://www.zend.com/en/community/pdt)
  3. configure your php.ini w/ the ZendDebugger extenssion (info below)

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

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

[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.

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

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

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

-Arin

这篇关于在OS X上使用Aptana Studio和Xdebug或Zend调试器进行Php调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆