Code

Ticket #7063: debug.py.diff

File debug.py.diff, 686 bytes (added by Fred Palmer <fred.palmer@…>, 6 years ago)

Diff for the changes I'm suggesting

Line 
1Index: debug.py
2===================================================================
3--- debug.py    (revision 7438)
4+++ debug.py    (working copy)
5@@ -166,6 +166,14 @@
6         'template_does_not_exist': template_does_not_exist,
7         'loader_debug_info': loader_debug_info,
8     })
9+   
10+    print '-' * 80
11+    print ' 500 Exception', c['exception_type'], c['exception_value']
12+    print '     url:', request.path, '\n'
13+    for fr in [ frames[i] for i in range( len(frames)-1, 0, -1 ) ]:
14+        print '   trace: [%5s] %-20s in %s' % (fr['lineno'] , fr['function'], fr['filename'] )
15+    print '-' * 80
16+   
17     return t.render(c)
18 
19 def technical_404_response(request, exception):