This must be the right place to get advice on this:

Can you recommend some good PHP testing and debugging software. Maybe something I can run on my local PC. Some kind of tool that will let you visually trace variables and emulate web server and database functions maybe..

I'm a little new to PHP so excuse me if I'm stumbling over my terms above.

Thanks in advance..