mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
support unlimited stack tracebacks
This commit is contained in:
parent
176ca9dc18
commit
78ae42c118
@ -81,7 +81,11 @@ if __debug__:
|
||||
to record (or None for unlimited).
|
||||
"""
|
||||
self.label = label
|
||||
self.trace = traceback.extract_stack(sys._getframe(1+start), limit=10)
|
||||
if limit is not None:
|
||||
self.trace = traceback.extract_stack(sys._getframe(1+start),
|
||||
limit=limit)
|
||||
else:
|
||||
self.trace = traceback.extract_stack(sys._getframe(1+start))
|
||||
|
||||
def __str__(self):
|
||||
r = "Debug stack trace of %s (back %s frames):\n"%(
|
||||
|
Loading…
x
Reference in New Issue
Block a user