module documentation

Undocumented

Class ​Frame A single frame in a traceback.
Class ​Group A group of frames for an exception in a traceback. If the exception has a __cause__ or __context__, there are multiple exception groups.
Class ​Line Helper for the source renderer.
Class ​Traceback Wraps a traceback.
Function get​_current​_traceback No summary
Function render​_console​_html Undocumented
Constant CONSOLE​_HTML Undocumented
Constant FOOTER Undocumented
Constant FRAME​_HTML Undocumented
Constant HEADER Undocumented
Constant PAGE​_HTML Undocumented
Constant SOURCE​_LINE​_HTML Undocumented
Constant SUMMARY​_HTML Undocumented
Variable ​_coding​_re Undocumented
Variable ​_funcdef​_re Undocumented
Variable ​_line​_re Undocumented
def get_current_traceback(ignore_system_exceptions=False, show_hidden_frames=False, skip=0):
Get the current exception info as Traceback object. Per default calling this method will reraise system exceptions such as generator exit, system exit or others. This behavior can be disabled by passing False to the function as first parameter.
Parameters
ignore​_system​_exceptions:boolUndocumented
show​_hidden​_frames:boolUndocumented
skip:intUndocumented
Returns
TracebackUndocumented
def render_console_html(secret, evalex_trusted=True):

Undocumented

Parameters
secret:strUndocumented
evalex​_trusted:boolUndocumented
Returns
strUndocumented
CONSOLE_HTML =

Undocumented

Value
(HEADER+'''<h1>Interactive Console</h1>
<div class="explanation">
In this console you can execute Python expressions in the context of the
application.  The initial namespace was created by the debugger automatically.
</div>
<div class="console"><div class="inner">The Console requires JavaScript.</div></
div>)
...
FOOTER: str =

Undocumented

Value
'''      <div class="footer">
        Brought to you by <strong class="arthur">DON\'T PANIC</strong>, your
        friendly Werkzeug powered traceback interpreter.
      </div>
    </div>

    <div class="pin-prompt">
...
FRAME_HTML: str =

Undocumented

Value
'''<div class="frame" id="frame-%(id)d">
  <h4>File <cite class="filename">"%(filename)s"</cite>,
      line <em class="line">%(lineno)s</em>,
      in <code class="function">%(function_name)s</code></h4>
  <div class="source %(library)s">%(lines)s</div>
</div>
'''
HEADER: str =

Undocumented

Value
'''<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <title>%(title)s // Werkzeug Debugger</title>
    <link rel="stylesheet" href="?__debugger__=yes&amp;cmd=resource&amp;f=style.
css"
...
PAGE_HTML =

Undocumented

Value
((HEADER+'''<h1>%(exception_type)s</h1>
<div class="detail">
  <p class="errormsg">%(exception)s</p>
</div>
<h2 class="traceback">Traceback <em>(most recent call last)</em></h2>
%(summary)s
<div class="plain">))
...
SOURCE_LINE_HTML: str =

Undocumented

Value
'''<tr class="%(classes)s">
  <td class=lineno>%(lineno)s</td>
  <td>%(code)s</td>
</tr>
'''
SUMMARY_HTML: str =

Undocumented

Value
'''<div class="%(classes)s">
  %(title)s
  <ul>%(frames)s</ul>
  %(description)s
</div>
'''
_coding_re =

Undocumented

_funcdef_re =

Undocumented

_line_re =

Undocumented