debugging php

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
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

debugging php

Post by volka »

I'm 'playing' with php as apache-module. However using the error.log and/or print-debugger isn't that effective ;)
So how do you debug your php-scripts?
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

Their is always the PHP Debugger, it's an addon to many of the editors out there. Zend Studio has it inside the package, and I am sure there are other editors that also include it in the package.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

any recommendable freeware solution? remember: I'm only playing with php so I'm not willing to spend $195 for Zend Studio 2 :roll:
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

Please, google for yourself :D

PHP Debugger: http://dd.cron.ru/dbg/

The PHP Debugger is included with Zend Studio, as well as many other packages.

Of course, there is always the classic echo $varname; approach, which suits me quite fine.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

thanks for the link, exactly what I was looking for :D

if I can avoid printf-debugger I do. At least since a customer ringed in to tell us that after 100 times he gets bored of clicking the 'Hallo Fred'-mesages boxes away. (fortunately not my fault ;) )
User avatar
mikeq
Forum Regular
Posts: 512
Joined: Fri May 03, 2002 3:33 am
Location: Edinburgh, Scotland

Post by mikeq »

PHPEdit http://www.phpedit.com/

Free PHP editor integrated with DBG debugger.

Mike
Post Reply