mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
added printStack and printVerboseStack
This commit is contained in:
parent
5153a9c4c5
commit
70076bfe26
@ -143,6 +143,11 @@ class StackTrace:
|
|||||||
r+="***** NOTE: This is not a crash. This is a debug stack trace. *****"
|
r+="***** NOTE: This is not a crash. This is a debug stack trace. *****"
|
||||||
return r
|
return r
|
||||||
|
|
||||||
|
def printStack():
|
||||||
|
print StackTrace(start=1).compact()
|
||||||
|
def printVerboseStack():
|
||||||
|
print StackTrace(start=1)
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
|
|
||||||
def traceFunctionCall(frame):
|
def traceFunctionCall(frame):
|
||||||
@ -2684,3 +2689,5 @@ __builtin__.rad90 = rad90
|
|||||||
__builtin__.rad180 = rad180
|
__builtin__.rad180 = rad180
|
||||||
__builtin__.rad270 = rad270
|
__builtin__.rad270 = rad270
|
||||||
__builtin__.rad360 = rad360
|
__builtin__.rad360 = rad360
|
||||||
|
__builtin__.printStack = printStack
|
||||||
|
__builtin__.printVerboseStack = printVerboseStack
|
||||||
|
Loading…
x
Reference in New Issue
Block a user