Should you all decide you would like to be able to turn debugging on/off at the module level, I have found a way to do it. The solution also lends itself to enabling individual debug statements even if the module debug output is turned off. I do have to redefine the PtDebugPrint function and edit all 264 of the python files but I'm getting used to that
Essentially, I would have to add a positional argument in the function call:def PtDebugPrint(dbg_on, *msgs **keywords)
where dbg_on is a bool and set True/False in each module.
To override the module debug output being off, you just have to make the first arg = 1 which will allow that statement to print.
And you can always just use print() if you are in a hurry.
If I understand variable scoping correctly, this would not enable the debug on any imported modules... I would have to actually set up a test to check this. I estimate it would take me about 4 hours to actually implement this.
(New thing learned today... mixing positional, arg lists, and keyword args all in the same function).
EDIT: By adding another arg, I could also create any user-defined error level you might like and totally disable the original levels.