Relative Content

Tag Archive for pythontry-excepttraceback

Print list (or tree) of active TRY blocks

I am debugging some complicated legacy Python3 code and find myself needing to know, at a particular point in the executing code, all the try blocks that are active in the call stack. Is there a way to introspect and print out the nested tree?