Page 1 of 1

debugging PHP code

Posted: Wed Oct 23, 2002 12:49 am
by Emil.Furniga
what tools could I use in order to debug some PHP code that is pretty error-prone - I use a recursive class in there and I suspect it enters an infinite loop and after about 10 seconds of running, the script ends with a 'segmentation fault' error

so I could use some tools for watching variables, step-by-step running, etc

I have read on the options of php (php -h) but I think they aren't of much help !

please suggest me some way of debugging !

Thank you !!
Emil.

vote for IDE's

Posted: Wed Oct 23, 2002 1:33 am
by phpScott
try going to this discussion
viewtopic.php?t=3495
as it talks about some of the IDE's that people use including debuggers which will allow you to step through your code to see what is happening.

phpScott
my favourite is PHPed by nuspher but it will cost a few US$'s not much but it is worth it in my opinion.