|
| str | hint = "Unknown context (enable it with ComponentAccumulator.debugMode = \"trackCA trackEventAlgo etc. see ComponentAccumulator documentation\")" |
Keeps the context info as a stack
Usage:
context = Context("context string") # this is it
Definition at line 5 of file DebuggingContext.py.
◆ __init__()
| python.DebuggingContext.Context.__init__ |
( |
| self, |
|
|
| c ) |
Definition at line 14 of file DebuggingContext.py.
14 def __init__(self, c):
15 Context.__context.append(c)
16
◆ __del__()
| python.DebuggingContext.Context.__del__ |
( |
| self | ) |
|
◆ complete()
| python.DebuggingContext.Context.complete |
( |
| cls | ) |
|
Definition at line 25 of file DebuggingContext.py.
25 def complete(cls):
26 return Context.hint if not Context.__context else "\n".join(Context.__context)
27
28
◆ current()
| python.DebuggingContext.Context.current |
( |
| cls | ) |
|
Definition at line 21 of file DebuggingContext.py.
21 def current(cls):
22 return Context.__context[-1]
23
◆ __context
| list python.DebuggingContext.Context.__context = [] |
|
staticprivate |
◆ hint
| str python.DebuggingContext.Context.hint = "Unknown context (enable it with ComponentAccumulator.debugMode = \"trackCA trackEventAlgo etc. see ComponentAccumulator documentation\")" |
|
static |
The documentation for this class was generated from the following file: