/
traceback.dbtmako
78 lines (65 loc) · 2.44 KB
/
traceback.dbtmako
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<div class="debugger">
<h1>${exception_type}</h1>
<div class="detail">
<pre class= "errormsg">${exception|n}</pre>
</div>
<h2 class="traceback">Traceback <small>(most recent call last)</small></h2>
${summary|n}
<div class="plain">
<p>
<input type="hidden" name="language" value="pytb">
This is the Copy/Paste friendly version of the traceback.
</p>
<textarea cols="50" rows="10" name="code"
readonly>${plaintext}</textarea>
</div>
<div class="explanation">
<p>
<b>Warning: this feature should not be enabled on production
systems.</b>
</p>
% if evalex:
<p>
Hover over any gray area in the traceback and click on the
<img src="${static_path}debugger/img/console.png"/> icon on the right hand
side of that gray area to show an interactive console for the
associated frame. Type arbitrary Python into the console; it will be
evaluated in the context of the associated frame. In the interactive
console there are helpers available for introspection:
<ul>
<li><code>dump()</code> shows all variables in the frame
<li><code>dump(obj)</code> dumps all that's known about the object
</ul>
</p>
% endif
<p>
Hover over any gray area in the traceback and click on
<img src="${static_path}debugger/img/source.png"/> on the right hand side
of that gray area to show the source of the file associated with the frame.
</p>
<p>
Click on the traceback header to switch back and forth between the
rendered version of the traceback and a plaintext copy-paste-friendly
version of the traceback.
</p>
<p>
URL to recover this traceback page: <a href="${url}">${url}</a>
</p>
</div>
<div class="footer">
Brought to you by <strong class="arthur">DONT PANIC</strong>, your
friendly Werkzeug powered traceback interpreter.
</div>
</div>
<!--
${plaintext_cs}
-->
<script type="text/javascript">
var DEBUGGER_TOKEN = "${pdtb_token}",
REQUEST_ID = "${request_id}",
CONSOLE_MODE = ${console},
EVALEX = ${evalex},
DEBUG_TOOLBAR_STATIC_PATH = "${static_path}",
DEBUG_TOOLBAR_ROOT_PATH = "${root_path}";
</script>
<script src="${static_path}debugger/debugger.js"></script>