19 exc_type, exc_value, exc_traceback = sys.exc_info()
20 print(
"***** print_exception:")
22 traceback.print_exception(exc_type, exc_value, exc_traceback, file=sys.stdout, limit=-60)
24 stack_summary = list(traceback.walk_tb(exc_traceback))
26 f, lineno = stack_summary[-1]
27 if 'tree' in f.f_locals:
28 print(
"While processing the following tree node (the format might differ from hNode representation).")
30 print(
"When parsing file: ", __file_input)
31 print(
"Line: ", f.f_locals[
'tree'].meta.line,
", Column: ", f.f_locals[
'tree'].meta.column)
32 print(f.f_locals[
'tree'].pretty())
33 print(f.f_locals[
'tree'].meta)