Cope 2.5.0
My personal "standard library" of all the generally useful code I've written for various projects over the years
Loading...
Searching...
No Matches
Classes | Namespaces | Functions | Variables
debugging.py File Reference

Classes

class  Cope.debugging.Undefined
 
class  Cope.debugging.Debug
 

Namespaces

namespace  Cope
 
namespace  Cope.debugging
 

Functions

def Cope.debugging.printArgs (*args, **kwargs)
 
inspect.FrameInfo Cope.debugging.get_metadata (int calls=1)
 
str Cope.debugging.prettify (Union[tuple, list, set, dict] iterable, Literal['pprint', 'custom'] method='custom', int width=..., int depth=..., int indent=4)
 
str Cope.debugging.get_full_typename (var, bool add_braces=True)
 
def Cope.debugging.print_debug_count (int left_adjust=2)
 
str Cope.debugging.get_varname (var, bool full=True, int calls=1, inspect.FrameInfo metadata=None)
 
str Cope.debugging.get_adjusted_filename (str filename)
 
str Cope.debugging.get_context (inspect.FrameInfo metadata, bool func=None, bool file=None, bool path=None)
 
def Cope.debugging.print_stack_trace (calls, func, file, path)
 
'Union[1, 2, 3, False]' Cope.debugging.called_as_decorator (funcName, metadata=None, calls=1)
 
def Cope.debugging.print_context (int calls=1, bool func=True, bool file=True, bool path=False, color='context')
 
"var" Cope.debugging.debug (var=undefined, str name=None, color=..., Literal['pprint', 'custom', 'repr'] show='custom', bool func=None, bool file=None, bool path=None, int calls=1, bool active=True, bool background=False, int depth=..., int width=..., bool stackTrace=False, bool raiseError=False, clr=..., bool trace=False, bool bg=False, bool throwError=False, bool throw=False # Alias of raiseError)
 
def Cope.debugging.debug (var=undefined, name=None, color=1, trace=False, calls=1)
 

Variables

 Cope.debugging.try :
 
logging Cope.debugging.Log = logging.getLogger(__name__)
 
repr Cope.debugging._repr = repr
 
int Cope.debugging._debug_count = 0
 
None Cope.debugging.root_dir = None
 
bool Cope.debugging.display_func = True
 
bool Cope.debugging.display_file = True
 
bool Cope.debugging.display_path = False
 
int Cope.debugging.verbosity = 1
 
Undefined Cope.debugging.undefined = Undefined()