Debugging Your Web Application
Using The Log
The final thing to do is to use the log! You can just use
tail or some editor viewing to view the log.
You can also modify the debug function, so for example, it emails you for every call (you may only be debugging certain errors and you need notification whenever these occur).
Just be careful if you are going to email log data – you could crowd your inbox very quickly if you’re not careful!.