使用 Aptana Studio 3 进行 XDebug [英] XDebug with Aptana Studio 3

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

问题描述

我想知道如何让 XDebug 与 Aptana Studio 3 一起工作(我已经在这台带有 XAMPP 的机器上安装了 Aptana Studio 3).

你知道最近的一篇文章告诉我如何做到这一点并解释 XDebug 吗?我没有任何关于 XDebug 的经验或任何知识,我寻找了文章,但对我来说似乎都过时了.

解决方案

我意识到这是一个旧线程,但我也很难找到如何使用 Aptana Studio 和 FireFox 调试 php 所以这里是一个快速的方法 -让它工作......

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

1.) 安装 Aptana Studio V3.3.X 或更高版本

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

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.

解决方案

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

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.) Install Aptana Studio V3.3.X or higher Download here

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


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


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 USERS

-------------

Follow the steps provided but your directory link in the

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

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

***** UPDATE *****

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

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

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

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