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.
Share
Nevermind, I have figured it out: