I have not tried this module, but it displays the output in a separate
window, and that would help in the case of update.php.

Perhaps it should be integrated in devel?

http://drupal.org/project/debug