duan5801 2008-09-24 15:12
浏览 84
已采纳

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

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.

  • 写回答

3条回答 默认 最新

  • duanpanzhu2910 2008-09-25 06:29
    关注

    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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 虚拟机打包apk出现错误
  • ¥30 最小化遗憾贪心算法上界
  • ¥15 用visual studi code完成html页面
  • ¥15 聚类分析或者python进行数据分析
  • ¥15 逻辑谓词和消解原理的运用
  • ¥15 三菱伺服电机按启动按钮有使能但不动作
  • ¥15 js,页面2返回页面1时定位进入的设备
  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
  • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝