MCPcopy Create free account
hub / github.com/daniel2005d/mapXplore / print_debug

Method print_debug

utils/ansiprint.py:49–60  ·  view source on GitHub ↗
(exception:Exception=None)

Source from the content-addressed store, hash-verified

47
48 @staticmethod
49 def print_debug(exception:Exception=None):
50 if GeneralSetting().isDebug:
51 message = ""
52 if isinstance(exception,Exception):
53 import traceback
54 traceback.print_exc()
55 # exc_type, exc_value, exc_traceback = sys.exc_info()
56 # if exc_traceback:
57 # message = f"{exc_value} {exc_traceback}"
58 else:
59 message = str(exception)
60 AnsiPrint.print(f"[bold][yellow][debug][reset] [yellow]{message} [reset]")
61
62 @staticmethod
63 def print_success(text:str)->None:

Callers 5

print_errorMethod · 0.80
_decodeMethod · 0.80
get_from_base64Method · 0.80
get_structureMethod · 0.80
convert_to_csvMethod · 0.80

Calls 2

GeneralSettingClass · 0.90
printMethod · 0.45

Tested by

no test coverage detected