Start debug output for a given mode, used to make sure debug output is output atomically and not interspersed with unrelated stuff.
mode |
string name of the mode to start the debug for |
true if mode is set, and in which case, you must call debug_end when finished any screen output. |