Ticket #3200: debug.py.patch
File debug.py.patch, 908 bytes (added by , 18 years ago) |
---|
-
debug.py
107 107 'post_context': post_context, 108 108 'pre_context_lineno': pre_context_lineno + 1, 109 109 }) 110 else: 111 try: 112 V = tb.tb_frame.f_locals.items(), 113 except: 114 V = [] 115 frames.append({ 116 'tb': tb, 117 'filename': filename, 118 'function': function, 119 'lineno': lineno + 1, 120 'vars': V, 121 'id': id(tb), 122 'pre_context': '[unknown pre_context]', 123 'context_line': '[unknown context_line]', 124 'post_context': '[unknown post_context]', 125 'pre_context_lineno': '[unknown pre_context_lineno]', 126 }) 127 110 128 tb = tb.tb_next 111 129 112 130 if not frames: