[IronPython] Accessing call stack
Anders M. Mikkelsen
amm at selektro.dk
Thu Sep 20 12:53:39 CEST 2007
Is there any way of accessing the python call stack in IronPython.
I'we tried using System.Diagnostics.StackTrace but most calls
on the clr call stack seem to be ironpython 'internals':
'''General logging function'''
print "%s: %s" % (StackTrace(1).GetFrame(0).GetMethod().Name, msg)
I could search the stack trace for actual python functions (I guess) as
their clr name seem to end in $fN; but I'm guessing that there must be
an easier way?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironpython-users