Yes, PHP will throw an error if you made mistakes. Debugging in PHP is like to be single: Do it yourself
You could try Zend Studio, it contains a complete PHP Environment including a debugger, phpDesigner2008 also contains a debugger afaik (Xardas should now exactly).
glitzi