Many of the web developers faced problem to use Aptana Studio as they cannot configure the XDebug in their workstation. Recently I configure my Aptana Studio for XDebug successfully. Here it is:
Requirements:
- Aptana Studio 3.2.0 or newer. I use 3.2.2 to demonstrate the tutorial
- XAMPP / WAMP/ LAMP or any other web server solutions.
- PHP 5.3 or newer.
- XDebug is already configured in the php.ini . If the XDebug is not configured in your web server, follow this link. I have discussed the topic in "Configure XDebug" post.
Steps:
- Click Window->Preferences.
- In the Preferences dialog go to Aptana Studio -> Editors -> PHP -> PHP Interpreters.
- Click "Add". Add a PHP interpreter by giving the php information. Select the php.exe file from the installed php web server. In this case I have used XAMPP sever.
- Don't close the prompt window. Go to Aptana Studio -> Web Servers and Create a new Web Sever by clicking "New". Select Simple Web Server.
- Enter the data for the localhost server and click "OK".
- Now close the preference window and go to Run ->Debug Configurations from the menu options.
- Select the "PHP Web Page" then click New Launch Configuration. Enter the field values and select Apply.
- Close the Prompt window.
- Now Debug the PHP Project by selecting Debug As -> PHP Server. Aptana Studio automatically open the Debug Perspective and continue to debug. Now, you can debug your PHP project using XDebug and Aptana Studio. Happy Codding .
I've spent hours trying to get Xdebug to work on Aptana Studio. I was just about ready to give up when I came across your blog. I had Xdebug up and running in 15 minutes. Thanks.
ReplyDeleteThe problem with these guides is they end with "now proceed to debug..."
ReplyDeleteWhat I'd love to see is a guide that goes
1. Assuming that your IDE and debugger are completely configured and working properly.
2. Assuming that you have a app to debug
3. Now start by setting a breakpoint
etc...
why not aptana: Help->Install aptana features ???
ReplyDeleteAptana provides builtin capability to install new features like
php (pdt)
php debugger
java script libraty
Thanks for the comment. I have tried a couple of ways to enable xdebug in aptana studio but finally I got run using this procedure. If you able to debug in another way please share your knowledge. Its great to learn new things.
DeleteFinally a good tutorial. Thanks very helpful!
ReplyDeleteWill that be ok if I do this without XAMPP / WAMP/ LAMP? I have Apache 2.2 and PHP 5.3.5 up good running ?
ReplyDeleteThanks for this tutorial!! Helped me to start quickly the debug-modus!!!
ReplyDeleteTrying to debug a Codeigniter appliacation with a form page. Aptana xdebug works wihh breakpoints at the launch of the form, but after user input of data in the form and submit, the debug session is lost, the ?XDEBUG_SESSION_START=ECLIPSE... part of the url has disappearedt. Of course I do want to continue the debug and watch the user input in the debug mode.
ReplyDeleteBUT HOW??
where do you actually see the output of the php script? and how can I pass query string parameters to it so they'll show up in $_GET?
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteI prefer to use Codelobster to debug my PHP code.
ReplyDeleteEnable Xdebug In Aptana Studio 3.X
ReplyDelete-
Developers Circle >>>>> Download Now
>>>>> Download Full
Enable Xdebug In Aptana Studio 3.X
-
Developers Circle >>>>> Download LINK
>>>>> Download Now
Enable Xdebug In Aptana Studio 3.X
-
Developers Circle >>>>> Download Full
>>>>> Download LINK 9S