Thanks, I did not know about onRequest. I want to send debug output immediately to the response, so that it appears on the rendered web page intermixed with the regular content. Ie I'm wondering is if there's an equivalent of trace for the web output.