本文介绍了带有Aptana Studio 3的XDebug的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何在Aptana Studio 3上使用XDebug(我已经在装有XAMPP的这台机器上安装了Aptana Studio 3).

I would like to know how i can get XDebug work with Aptana Studio 3 (I already have Aptana Studio 3 on this machine with XAMPP).

您是否知道最近有一篇文章告诉我该如何做并解释了XDebug?我没有关于XDebug的经验,也没有任何知识,我一直在寻找文章,但对我而言似乎都过时了.

Do you know a recent article telling me how to do this and explains XDebug? I have no experience nor any knowledge about XDebug, i looked for articles but all seem outdated to me.

推荐答案

我意识到这是一个旧线程,但是我也很难找到如何使用Aptana Studio和FireFox调试php的方法,因此这里有一个快速的方法-使其正常工作...

I realize that this is a old thread but I also had a difficult time finding out how to debug php with Aptana Studio and FireFox so here is a quick how-to to get it working...

我发现最简单的方法是安装wamp服务器V2.2,这是一个非常有用的程序,因为它安装了Apache Server,PHP和MySQL等工具,所有内容都可以通过任务栏轻松配置.

The easiest way I found is to install wamp server V2.2, this is a very useful program as it installs Apache Server, PHP and MySQL and other tools, everything can be easily configured via the taskbar.

1.)安装Aptana Studio V3.3.X 或更高版本在这里下载

1.) Install Aptana Studio V3.3.X or higher Download here

2.)安装WampServer V2.2或更高版本在此处下载( XAMMP用户请阅读底部).

2.) Install WampServer V2.2 or higher Download here (XAMMP users read bottom).

WampServer:

1.)确保XDebug正在接受远程调试,单击任务栏中的WampServer图标,然后转到PHP-> PHP设置,并确保选中(XDebug):Remote debug"(如果未选中),请单击确定". WampServer图标和重新启动所有服务".

1.) Make sure XDebug is accepting remote debug, click on the WampServer icon in the taskbar and go to PHP->PHP Setting and make sure that "(XDebug): Remote debug" is checked if not select it click on the WampServer icon and "Restart all services".

2.)验证XDebug是否正在运行: a.)如果您有WampServer插入index.php,请在URL中输入"localhost",然后在工具"下单击"phpinfo()"并检查以确保XDebug正在运行,您应该在FireFox中看到以下内容:

2.) Verify that XDebug is running: a.) If you had WampServer insert index.php enter "localhost" in the URL and under "Tools" click "phpinfo()" and check to make sure XDebug is running, you should see the following in FireFox:

b.) If you didn't overwrite the index.php create a file (/www_dir/phpinfo.php) with the following:
<?php
phpinfo();
?>

b.1) In FireFox enter "localhost/phpinfo.php" and look for XDebug as shown in the previous image.


Aptana Studio:

  1.) Click Window->Preferences
  2.) In the Preferences dialog go to Aptana Studio->Editors->PHP->PHP Interpreters
  3.) Click "Add..."
  4.) Enter the information like
  5.) Click "OK"
  6.) Click on the debug icon and select "Debug Configurations"
  7.) Double click on "PHP Web Page"
  8.) Click the plus next to "PHP Server"

     a.) Enter a name
     b.) Base URL will be "localhost"
     c.) Document Root will be the path to your index.php


最后,在Aptana Studio中,单击调试"图标箭头,然后选择上面指定的配置.如果Firefox提示您安装Aptana Studio插件...


Finally in Aptana Studio click the Debug Icon Arrow and select the configuration you named above. If Firefox prompts you install the Aptana Studio plugin...

希望这对您有帮助...

Hope this helps out...

XAMPP用户

按照提供的步骤进行操作,但是您的目录链接位于

Follow the steps provided but your directory link in the

在首选项"对话框中,转到Aptana Studio->编辑器-> PHP-> PHP解释器

In the Preferences dialog go to Aptana Studio->Editors->PHP->PHP Interpreters

应分别链接到C:\ xampp \ php \ php.exe和C:\ xampp \ php \ php.ini

should link to C:\xampp\php\php.exe and C:\xampp\php\php.ini respectively

*****更新*****

***** UPDATE *****

如果您使用的是Firefox V20 +,则Firebug V1.8 +会存在一些兼容性问题,这些问题基本上会破坏Firefox的上下文菜单,我找不到针对此问题的修复程序,因此最终不得不走另一条路,认为我应该这样做.帖子中,Aptana Studio是基于Eclipse的,所以恕我直言,获取PHP调试的最佳方法是使用PDT安装Eclipse并删除Aptana Studio....上述说明将使XDebug正常运行

If you are using Firefox V20+ there are some compatibility problems with Firebug V1.8+ that basicly breaks Firefox's context menus, I could not find a fix for it so I ended up having to go another route and figured I should make a post, Aptana Studio is based on Eclipse so the best way IMHO to get PHP Debugging is to install Eclipse with PDT and remove Aptana Studio... The above instructions will work to get everything working with XDebug

这是一个很好的链接,说明如何启动和运行所有内容 eclipse-pdt

Here is a nice link on how to get everything up and running eclipse-pdt

这篇关于带有Aptana Studio 3的XDebug的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 17:24