Apache::Debug - Utilities for debugging embedded perl code
use Apache::Debug ();
Apache::Debug::dump($r, SERVER_ERROR, "Uh Oh!");
This module sends what may be helpful debugging info to the client rather that the error log.