1 <link rel="stylesheet" href="/css/ramaze_error.css" />
2 <script type="text/javascript" src="/js/jquery.js"></script>
4 <p>The backtrace gives filenames and line numbers for all parts of the call stack.<br />
5 Click on any of them to view the surrounding source code.</p>
11 <td>File</td><td>Line</td><td>Method</td>
13 <?r @backtrace.each do |lines, hash, file, lineno, meth| ?>
14 <tr class="line" id="#{hash}">
15 <td>#{file}</td><td class="lineno">#{lineno}</td><td><pre>#{meth}</pre></td>
17 <tr id="source_#{hash}" style="display:none;">
20 <table style="width:100%;">
22 <td class="editor" colspan="2">
23 #{@editor} #{file} +#{lineno}
24 <div style="float: right">
25 <a href="txmt://open?url=file://#{file}&line=#{lineno}">open in textmate</a>
29 <?r lines.each do |llineno, lcode, lcurrent| ?>
30 <tr class="source" #{'style="background:#faa;"' if lcurrent}>
31 <td class="lineno">#{llineno}</td>
32 <td class="code"><pre>#{lcode.to_s.rstrip}</pre></td>
43 { 'Session' => Thread.current[:session],
44 'Request' => Thread.current[:request],
45 'Response' => Thread.current[:response],
47 }.each do |title, content|
48 hash = [title, content].object_id.abs
50 <div class="additional">
51 <h3 id="#{hash}">#{title}</h3>
52 <pre style="display:none" id="is_#{hash}">#{CGI.escapeHTML(content.pretty_inspect)}</pre>
56 <script type="text/javascript">
57 $("tr.line").click(function(){
58 $("tr#source_"+this.id).toggle()
61 $("div.additional > h3").click(function(){
62 $("pre#is_"+this.id).toggle()