I've hacked my installation of debug() to include the line and file from which the debug call came (using debug_backtrace()). This is brilliant when you have loads of debug statements around your code. Shall I mail the patch? dan