阅读背景:

如何在ScriptEngine.SetTrace()发生异常时使用TracebackDelegate有效负载?

来源:互联网 

I am using ScriptEngine.SetTrace() and I am wondering how do you use the tuple that is contained in the TracebackDelegate "payload" variable when an exception occurs? I would like to get the message, method name, line number, file name, etc for the exception. I could get the last three from frame.f_code and frame.f_lineno, but the other information seems to be contained in the payload tuple object, which I have no idea how to extract.I am using ScriptEngine.SetTrace() and I am won




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: