How to check the value of a variable
I'm making a webapplication and I find it really hard to check the value of the variables? What is the best way to do this? I've tried using the debugger, but for some reason I can't get it to work properly.
How do the professionals do it? Do you write the value to the browser? Or do you write it to to the logfile?
I've tried writing to the browser, but in some of the classes, for instance in ejb-classes you don't have access to the writerobject, which makes the writing process really difficult.
What is the best way to do this?

