PHP Debugging Doc now available

Discussion about the Aptana Studio PHP plug-in and PHP coding experience inside of Studio.

Moderator: Aptana Staff

PHP Debugging Doc now available

Postby blazar » Tue Sep 16, 2008 5:59 pm

A bit raw but has useful information:

http://www.aptana.com/docs/index.php/Ba ... _Debugging

Feedback appreciated!
blazar
 
Posts: 668
Joined: Wed Jul 02, 2008 9:54 pm

Postby t1ells555 » Fri Sep 26, 2008 6:25 pm

Is it possible to use the debugger when using a PHP framework such as Zend or Solar where your pages are served using an .htaccess file and the mod-rewrite directive? Either with the Aptana server or an apache server with a localhost root dir?

Thank you,

Tim
t1ells555
 
Posts: 5
Joined: Fri Jul 11, 2008 12:42 pm

Postby sgibly » Tue Dec 02, 2008 3:23 am

More instruction on remote debugging are posted here:
http://www.aptana.com/docs/index.php/Re ... _Debugging

Best,
Shalom G.
User avatar
sgibly
 
Posts: 684
Joined: Sat Jun 28, 2008 5:41 pm
Location: San Mateo, CA

Re: PHP Debugging Doc now available

Postby andras » Mon Jan 12, 2009 1:04 pm

I have the same question as t1ells555. I think that the answer given by sgibly does not match the question because it is not a question of remote debugging but rather : how to use Aptana to debug *locally* a PHP project based on the Zend Framework where you have a single entry point "index.php" (with redirection rules in the .htaccess).

By the way, in the PHP Debug doucmentation, section "Web page debug configuration", it is said : "To complete such a configuration you have to set up a server (through the Servers view) such as Apache or XAMPP. "
How can I display this "Servers view" ?
andras
 
Posts: 11
Joined: Fri Dec 26, 2008 2:22 pm

Re: PHP Debugging Doc now available

Postby sgibly » Mon Jan 12, 2009 6:13 pm

Hi,
The instructions to debug using a local server or using a server that is located on a remote machine are the same as we specified in the wiki page.
Note again that the version that was released is still experimental and we are working on a major improvement for that.

The 'Servers' view can be displayed by accessing the application menu -> Window->Show View->Other... and type in 'servers' to filter out the rest. Once you select the 'Servers' view, it will appear on the bottom side.

Best,
-Shalom G.
User avatar
sgibly
 
Posts: 684
Joined: Sat Jun 28, 2008 5:41 pm
Location: San Mateo, CA

Re: PHP Debugging Doc now available

Postby vitalic » Mon Mar 09, 2009 12:50 pm

Remote debugging with xdebug doesn't work at all for me. Firstly there is no proper path mapping and even though I've set up my local path to match the server path it can't find certain directories but can find others. Also for files it can find, the instruction pointer is completely messed up and is always a few lines off making it impossible to debug with. Any clues? Before you mention it I have an up to date clean Aptana install with no other plugins running.
vitalic
 
Posts: 35
Joined: Sat Mar 07, 2009 3:43 pm

Re: PHP Debugging Doc now available

Postby sgibly » Mon Mar 09, 2009 5:29 pm

About the off-instruction-pointer. In case you have a project which is a copy of the files that you have on your server (not an Alias link), you will have to make sure that your files are in sync.
The line indicators from the debugger are taken from the files that your server can 'see'.

In case this is off, there is a good chance that it is the cause for the other problems you are having with the directories.

Best,
Shalom G.
User avatar
sgibly
 
Posts: 684
Joined: Sat Jun 28, 2008 5:41 pm
Location: San Mateo, CA

Re: PHP Debugging Doc now available

Postby sgibly » Tue May 05, 2009 12:45 am

Note that the debugger instructions are a bit outdated.
The new Alpha 1.1 already introduce a better debug system that provides an inner path mapper to handle more complex debug scenarios and server settings.
It also provides XDebug JIT capabilities, allowing you to initiate a debug session directly from the browser with tools such as the 'XDebug Helper'.

Cheers,
Shalom G.
User avatar
sgibly
 
Posts: 684
Joined: Sat Jun 28, 2008 5:41 pm
Location: San Mateo, CA

Re: PHP Debugging Doc now available

Postby sgibly » Thu Jul 30, 2009 2:29 am

Updated the http://www.aptana.com/docs/index.php/Re ... te_a_debug page.
This page will get more content in time (and by your requests)
Cheers,
-Shalom G
User avatar
sgibly
 
Posts: 684
Joined: Sat Jun 28, 2008 5:41 pm
Location: San Mateo, CA


Return to PHP plug-in