From: Christian Van Wambeke Date: Wed, 21 Mar 2018 09:26:23 +0000 (+0100) Subject: best docstring src/debug.py X-Git-Tag: 5.1.0~50 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=788a01b4bddd79de8067345a99b6ce0da3605503;p=tools%2Fsat.git best docstring src/debug.py --- diff --git a/src/debug.py b/src/debug.py index a9444a9..e1ab251 100644 --- a/src/debug.py +++ b/src/debug.py @@ -38,10 +38,10 @@ to set no show message as production phase: to set show message temporary as development phase, only in a method: >> def aMethodToDebug(...): ->> DBG.push_debug(True) #force show as appended status ->> etc. method code with some DBG.write() ->> DBG.pop_debug(False) #restore previous status (show or not show) ->> return +>> DBG.push_debug(True) #force show as appended status +>> etc. method code with some DBG.write() +>> DBG.pop_debug() #restore previous status (show or not show) +>> return to set a message for future fix, as temporary problem to not forget: DBG.tofix("aTitle", aVariable, True/False) #True/False in production shown, or not