[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How do you debug with php



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 there isn't a great raft of solutions out there that just work.

I am particular puzzled with Eclipse. The PDT project has been going for a long while now and yet there is question after question on the forum as to why xdebug fails to catch their breakpoints. I have it set to break on the first line of the file I am debugging, yet it still doesn't seem to work. This leaves me to believe that I am doing something wrong, but I just don't know what.

Funny how things happen

JUST after I sent this email I tried a new approach.

I blew away the entire Eclipse configuration, and reloaded the base Eclipse, and then started it up. Instead of defining a workspace within my current development environment I defined a separate workspace. I then updated Eclipse within itself with the PDT SDK.

I created a new project and told it to link to the existing files which it just did.

I then setup my debugging environment and it immediately broke on the first line of the file when I ran it. I then, by accident, found it crashed if I had the variables tab open, and from then on its working perfectly EXCEPT if I select the Variables tab (the one that shows the values of all the variables) it crashes.


--
Alan Chandler
http://www.chandlerfamily.org.uk


Reply to: