Show locals in last frame during traceback.

This commit is contained in:
Edward Betts 2020-01-07 14:40:15 +00:00
parent 19c4a7d221
commit 849aa57780
2 changed files with 7 additions and 4 deletions

View file

@ -11,9 +11,10 @@
<div>
<pre>{{ tb.exception }}</pre>
<p>Error in function "{{ tb.frames[-1].function_name }}":
{{ last_frame_args | pprint }}</p>
<p>Error in function "{{ tb.frames[-1].function_name }}"<br>
{{ last_frame_args | pprint }}<br>
locals: {{ last_frame.locals | pprint }}
<p>
</div>
{% set body %}