Debugging code in elgg

Hi All,

I am wondering how the more experienced programmers get to test and debug plugins. It seems that there are never errors outputted or any comments at all which make it really hard to debug any kind of elgg code.

How do you guys handle this, what kind of software you use or what kind of commands do you put in your code to trace the value of a variable?

I use netbeans to code.

Thanks for any help I can get!

-marcom