Step-through Debugger?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
train
Forum Commoner
Posts: 27
Joined: Wed Aug 16, 2006 3:58 pm
Contact:

Step-through Debugger?

Post by train »

Hello,

I used to use PowerBuilder a lot (its the only programming Ive ever really done) and it had a really handy debugger where you could execute the code and follow along, checking out variables and the values that they held as the code was being run.

I am trying to debug some php and although I know I can print specific variables when I want to know what they hold, it doesnt seem like the best way to do things.

Do any editors have particularly good debugging functionality? I dont expect that they will offer any live peeks into the code, but maybe they will come close? How do you go about running code and seeing what is going on without resorting to print_r or stopping things altogether?

In some cases, I am working on other people's code and it is very complex... I am positive there are a lot of things floating around that I am not even aware of. It would be good to see what is happening.

Like I said, I am new to PHP so this might be a silly question. If so, I apologize. I have looked around and have not seen this mentioned elsewhere besides one question on this board and it was not identical to my question.

Thanks a lot.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

hmm, particularly good debugging.. none that I've ever seen. There are a couple of editors (or maybe it's just one) that has step-through, and that's Zend Studio that comes to mind.

This subject has likely been talked about in the mega-thread about editors.. Look in General Discussion for it, it's hard to miss.
User avatar
train
Forum Commoner
Posts: 27
Joined: Wed Aug 16, 2006 3:58 pm
Contact:

Post by train »

feyd wrote:hmm, particularly good debugging.. none that I've ever seen. There are a couple of editors (or maybe it's just one) that has step-through, and that's Zend Studio that comes to mind.

This subject has likely been talked about in the mega-thread about editors.. Look in General Discussion for it, it's hard to miss.
Will do. I actually saw that thread and didnt even think about it. The idea of a step-through editor didnt come to mind until I was composing my post. I will download Zend and take a peek. Cool.

Woah... you have to pay for it.

Yikes.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

The good ones don't come free.

PHPEdit has a a step-through debugger I believe. JCX Software has something called VS.php, a PHP plugin for VS Studio, which I believe also has a step-through debugger. And CodeCharge Studio has a debugger, but I am not sure how powerful it is. And I think (but I am so not sure) that tsWebEditor has a debugger as well. And it is free.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

From what I know, weaverslave has a debugger client compatible with Xdebug 2+
Post Reply