Removing the debugging when you're done

There is now no need to remove the debugging.

Unless you click the "Toggle Debug" link, then it is invisible.

Questions and answers:

Wouldn't it be better not to collect the debug information when debugging is off?
Probably not. If your code encounters a fatal error condition, it can set a flag which causes the debug information to come out anyway So when the user reports the problem, and sends you a screenshot, you will have a traceback of what happened.
Is it possible to trace external functions/subroutines as well?
Yes. read on!