Open dubstar-04 opened 3 years ago
create a logging module to allow a consistent method to write to a logfile or print debug information
add human unstandable output such as 'Line Element', 'Clockwise Arc' and map the flow through each function:
from inspect import getframeinfo, stack
def debuginfo(message): caller = getframeinfo(stack()[1][0]) print "%s - %s - lineno %d: %s" % (caller.filename, caller.function, caller.lineno, message)
[filename.py - functionname- lineno xx: message]
create a logging module to allow a consistent method to write to a logfile or print debug information
add human unstandable output such as 'Line Element', 'Clockwise Arc' and map the flow through each function:
from inspect import getframeinfo, stack
def debuginfo(message): caller = getframeinfo(stack()[1][0]) print "%s - %s - lineno %d: %s" % (caller.filename, caller.function, caller.lineno, message)
[filename.py - functionname- lineno xx: message]