Re: How do you debug with php

2012-04-16 Thread Alan Chandler
On 17/04/12 07:01, Alan Chandler wrote: On 17/04/12 01:16, Chris Hiestand wrote: I have never used a debugger for PHP; I think your struggles are part of the reason why. Neither have I until now. But I don't understand why this isn't a typical many eyes make the problems trivial, and that the

Re: How do you debug with php

2012-04-16 Thread Alan Chandler
On 17/04/12 01:16, Chris Hiestand wrote: I have never used a debugger for PHP; I think your struggles are part of the reason why. Neither have I until now. But I don't understand why this isn't a typical many eyes make the problems trivial, and that there isn't a great raft of solutions out

Re: How do you debug with php

2012-04-16 Thread Chris Hiestand
I have never used a debugger for PHP; I think your struggles are part of the reason why. Instead I just use debug statements when I hit a problem - probably not quite as clean as using a debugger. Something like this helps me a lot: > function pre_print_r($a) { > print "\n