Add function to explicitly set debugVerbosity

Although the TrialError() function sets the debugVerbosity, it has the disadvantage of not setting it explicitly but only increasing it, as well as containing a large amount of other code.  This change allows us to set it to a specific level, and then set it back down as needed.