How-to configure Xdebug + XAMPP + Aptana Studio 3 on Windows 2


This how-to will describe how to configure Aptana Studio 3 on Windows with XAMPP and Xdebug to be able to debug PHP code.

 

Enable Xdebug in apache

The first thing, that we should do is to enable Xdebug on XAMPP. For this we must edit the php.ini file that configurates the php module.

So we need the following configurations:

Note:
zend_extension = "<the path MUST contain the drive letter>"

Restart apache server after this changes.

To proof the activation of Xdebug you can use the phpinfo() function (XAMPP has already the function for this on the main page).

The output should be looks like on the following image:

phpinfo with activated xdebug

Configuration of Aptana Studio 3

Now we must configure our Aptana Studio to be able to debug PHP code.

XDebug

Go to Window -> Preferences -> Aptana Studio -> Editors -> PHP -> Debug -> Installed Debuggers
mark XDebug and click to Configure

Now set the following settings in the configuration dialog:

Configuration dialog of Xdebug in Aptana Studio 3

Configuration dialog of Xdebug in Aptana Studio 3

PHP Interpreter

The next step is to add the PHP interpreter to Aptana.

Go to Window -> Preferences -> Aptana Studio -> Editors -> PHP -> PHP Interpreters

Now click to Add… and set the following settings:

Add PHP interpreter

Adding a PHP interpreter to Aptana Studio 3

Debug PHP Web Page

Now you can create the Debug launch configuration.

Go to Run -> Debug Configurations and add a new PHP Web Page with settings like following:

Debug launch configuration PHP Web Page

Create a launch configuration for debug a PHP web page

 

Now you should be ready to debug some PHP code.

Have Fun.

 

 

 

 


Leave a comment

Your email address will not be published. Required fields are marked *

2 thoughts on “How-to configure Xdebug + XAMPP + Aptana Studio 3 on Windows

  • Shiva

    thx for the feedback post about NetBeans for PHP. I know the dev team is aaylws looking for ways to improve support. Also, another place to get the latest info is blogs.sun.com/netbeansphp@Kevin lots of good reasons to try out NetBeans for PHP: standard IDE features, integrated JavaScript editor and debugger for IE/Firefox, Database tools (explorer and SQL editor) all in a 20+ mb download.