LSSTApplications  19.0.0-10-g920eed2,19.0.0-11-g48a0200+2,19.0.0-18-gfc4e62b+13,19.0.0-2-g3b2f90d+2,19.0.0-2-gd671419+5,19.0.0-20-g5a5a17ab+11,19.0.0-21-g2644856+13,19.0.0-23-g84eeccb+1,19.0.0-24-g878c510+1,19.0.0-25-g6c8df7140,19.0.0-25-gb330496+1,19.0.0-3-g2b32d65+5,19.0.0-3-g8227491+12,19.0.0-3-g9c54d0d+12,19.0.0-3-gca68e65+8,19.0.0-3-gcfc5f51+5,19.0.0-3-ge110943+11,19.0.0-3-ge74d124,19.0.0-3-gfe04aa6+13,19.0.0-30-g9c3fd16+1,19.0.0-4-g06f5963+5,19.0.0-4-g3d16501+13,19.0.0-4-g4a9c019+5,19.0.0-4-g5a8b323,19.0.0-4-g66397f0+1,19.0.0-4-g8278b9b+1,19.0.0-4-g8557e14,19.0.0-4-g8964aba+13,19.0.0-4-ge404a01+12,19.0.0-5-g40f3a5a,19.0.0-5-g4db63b3,19.0.0-5-gfb03ce7+13,19.0.0-6-gbaebbfb+12,19.0.0-61-gec4c6e08+1,19.0.0-7-g039c0b5+11,19.0.0-7-gbea9075+4,19.0.0-7-gc567de5+13,19.0.0-71-g41c0270,19.0.0-9-g2f02add+1,19.0.0-9-g463f923+12,w.2020.22
LSSTDataManagementBasePackage
Using lsstDebug to control debugging output

The class can be used to turn on debugging output in a non-intrusive way. For example, the variable lsstDebug.Info"lsst.meas.astrom.astrom").debug is used to control debugging output from the lsst.meas.astrom.astrom module. It is always safe to interrogate lsstDebug for example lsstDebug.Info"Robert.Hugh.Lupton").isBadPerson will return False. The convention is that the name ("lsst.meas.astrom.astrom") is the __name__ of the module, so the source code will typically look something like: import lsstDebug print lsstDebug.Info(__name__).display which will print False unless lsstDebug.Info(__name__)display has somehow been set to True Why is this interesting? Because you can replace lsstDebug.Info with your own version, e.g if you put import lsstDebug def DebugInfo(name): di = lsstDebug.getInfo(name) # N.b. lsstDebug.Info(name) would call us recursively if name == "foo": di.display = True return di lsstDebug.Info = DebugInfo into a file debug.py and import lsstDebug print "display is", lsstDebug.Info(__name__).display into foo.py then $ python -c "import foo" display is False but $ python -c "import debug; import foo" display is True The lsst.pipe.base.cmdLineTask.CmdLineTask command line task interface supports a flag –debug to import debug.py from your PYTHONPATH