Ticket #7063: debug.py.diff

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

Diff for the changes I'm suggesting

  • debug.py

     
    166166        'template_does_not_exist': template_does_not_exist,
    167167        'loader_debug_info': loader_debug_info,
    168168    })
     169   
     170    print '-' * 80
     171    print ' 500 Exception', c['exception_type'], c['exception_value']
     172    print '     url:', request.path, '\n'
     173    for fr in [ frames[i] for i in range( len(frames)-1, 0, -1 ) ]:
     174        print '   trace: [%5s] %-20s in %s' % (fr['lineno'] , fr['function'], fr['filename'] )
     175    print '-' * 80
     176   
    169177    return t.render(c)
    170178
    171179def technical_404_response(request, exception):
Back to Top