Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging & PHP

Former Member
0 Kudos

I have programmed in ABAP and PHP. Is there a debugging tool for use in PHP where one can step through the program following its path and allowing the program variables values to be displayed? Much like ABAP debugger does. I have heard of Eclipse and PHP plugins, but have not tried it.

Best Regards

Jimmy

1 ACCEPTED SOLUTION

Former Member
0 Kudos

I use PHPEclipse the Plugin for Eclipse and PHP but I've not done a step through, I'm so used to putting a


echo "Here I am";

In my code, I do know there are some PHP IDE's that do have debugging available maybe one of the other guys here might pop in with a good name of one to try out.

13 REPLIES 13

Former Member
0 Kudos

I use PHPEclipse the Plugin for Eclipse and PHP but I've not done a step through, I'm so used to putting a


echo "Here I am";

In my code, I do know there are some PHP IDE's that do have debugging available maybe one of the other guys here might pop in with a good name of one to try out.

0 Kudos

Of course there are professional debugging tools for PHP

<commercial_plug>

Zend Studio is a complete IDE for developing and debugging applications -- both locally and remotely against the server. It allows you to do all of the common debugging techniques (variable watching, breakpoints, step throughs, etc.) even if you don't have a copy of the code locally available. You can get more information at:

http://www.zend.com/store/products/zend-studio/

</commercial_plug>

If you are interested in more open source alternatives which are much more difficult to use (in terms of ease of use, etc.) you can also check out XDebug:

http://www.xdebug.org

Hope that helps!

Cheers,

John

0 Kudos

Any chance of a SDN member discount from Zend on the Zend Studio - $299 is a bit more than I was wanting to pay. Even $99 for the standard was a bit more than I was thinking.

From your more expierenced point of view is the "Remote Debugger" and "Remote Profiler" worth the $200 more? I can imagine they are but at the moment I couldn't think of a single use for them although once in a high productive environment the "Remote Profiler" could become a necessity like Mecury Loadrunner and Wiley for the Java stuff in SAP and EP.

0 Kudos

Thanks Guys, it was very helpful. The price is a bit too high for my personal use. I am getting used to all the freeware. I might try the Xdebug. Thanks again.

0 Kudos

Hey Jimmy don't forget about those reward points - especially that 10 pointer for John since it will mark the thread as "Solved" and others will find it quicker when they search for the same thing

Former Member
0 Kudos

Maguma Open Studio can step through

its a bit buggy but nothing terminal

I'm just learning php and found it really useful

I've just installed phpeclipse and cant figure a way to step through and I'm missing that functinality

-craig

johna69
Product and Topic Expert
Product and Topic Expert
0 Kudos

I tend to write any debug data to a session variable and then dump it print_r() at the end. echo() helps too.

I have mostly used vi for developing, the exception being zend studio in Linux.

0 Kudos

A lower cost PHP editor with debugger and the features listed above would be PHP Expert Editor. It can be found at www.ankord.com.

Regards

B. Mawhinney

Former Member
0 Kudos

I will recommend you a very nive article on IBM developersWorks

<a href="http://www-128.ibm.com/developerworks/opensource/library/os-debug/">Debugging techniques for PHP programmers</a>

0 Kudos

I use the PHP Expert Editor...It's great...but for some weird reason...Since PHP 5 the debugger doesn't longer work...So i just use the simple but powerfull WRITE or ECHO...If anyone knows something about that problem...please write me a line -;)

Greetings,

Blag.

0 Kudos

Alvaro,

just use DBG library from NUSPHERE PHP IDE that includes DEBUGGER for PHP. PHP EXPERT EDITOR just use his DBG library. So it's not a problem to cut and paste this library and used them in PHP EXPERT EDITOR. Or just take a look in the forum from NUSPHERE at [http://support.nusphere.com/viewforum.php?f=4]. I can't guarantee that you will be succesfull there.

0 Kudos

Radim:

Thanks -:) But I don't use PHP Expert Editor any longer...I'm using...humm...Just forgot the name...But thanks anyway, it was a helpful link -;)

Greetings,

Blag.

0 Kudos

Yes, it's just no problem.

As I noticed, your question was very very lately dated ..... but it was not problem. And as i mentioned you are one of the guru of PHP & SAP scripting writer.