src/eric7/Documentation/Source/eric7.Debugger.ExceptionLogger.html

Sat, 26 Apr 2025 12:34:32 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 26 Apr 2025 12:34:32 +0200
branch
eric7
changeset 11240
c48c615c04a3
parent 10479
856476537696
permissions
-rw-r--r--

MicroPython
- Added a configuration option to disable the support for the no longer produced Pimoroni Pico Wireless Pack.

<!DOCTYPE html>
<html><head>
<title>eric7.Debugger.ExceptionLogger</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<a NAME="top" ID="top"></a>
<h1>eric7.Debugger.ExceptionLogger</h1>
<p>
Module implementing the Exception Logger widget.
</p>

<h3>Global Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Classes</h3>
<table>
<tr>
<td><a href="#ExceptionLogger">ExceptionLogger</a></td>
<td>Class implementing the Exception Logger widget.</td>
</tr>
</table>

<h3>Functions</h3>
<table>
<tr><td>None</td></tr>
</table>

<hr />
<hr />
<a NAME="ExceptionLogger" ID="ExceptionLogger"></a>
<h2>ExceptionLogger</h2>
<p>
    Class implementing the Exception Logger widget.
</p>
<p>
    This class displays a log of all exceptions having occured during
    a debugging session.
</p>

<h3>Signals</h3>
<dl>

<dt>sourceFile(string, int)</dt>
<dd>
emitted to open a source file at a line
</dd>
</dl>
<h3>Derived from</h3>
QTreeWidget
<h3>Class Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Class Methods</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Methods</h3>
<table>
<tr>
<td><a href="#ExceptionLogger.__init__">ExceptionLogger</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#ExceptionLogger.__configure">__configure</a></td>
<td>Private method to open the configuration dialog.</td>
</tr>
<tr>
<td><a href="#ExceptionLogger.__itemDoubleClicked">__itemDoubleClicked</a></td>
<td>Private slot to handle the double click of an item.</td>
</tr>
<tr>
<td><a href="#ExceptionLogger.__openSource">__openSource</a></td>
<td>Private slot to handle a double click on an entry.</td>
</tr>
<tr>
<td><a href="#ExceptionLogger.__showContextMenu">__showContextMenu</a></td>
<td>Private slot to show the context menu of the view.</td>
</tr>
<tr>
<td><a href="#ExceptionLogger.addException">addException</a></td>
<td>Public slot to handle the arrival of a new exception.</td>
</tr>
<tr>
<td><a href="#ExceptionLogger.debuggingStarted">debuggingStarted</a></td>
<td>Public slot to clear the listview upon starting a new debugging session.</td>
</tr>
</table>

<h3>Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>


<a NAME="ExceptionLogger.__init__" ID="ExceptionLogger.__init__"></a>
<h4>ExceptionLogger (Constructor)</h4>
<b>ExceptionLogger</b>(<i>parent=None</i>)
<p>
        Constructor
</p>

<dl>

<dt><i>parent</i> (QWidget)</dt>
<dd>
reference to the parent widget
</dd>
</dl>
<a NAME="ExceptionLogger.__configure" ID="ExceptionLogger.__configure"></a>
<h4>ExceptionLogger.__configure</h4>
<b>__configure</b>(<i></i>)
<p>
        Private method to open the configuration dialog.
</p>

<a NAME="ExceptionLogger.__itemDoubleClicked" ID="ExceptionLogger.__itemDoubleClicked"></a>
<h4>ExceptionLogger.__itemDoubleClicked</h4>
<b>__itemDoubleClicked</b>(<i>itm</i>)
<p>
        Private slot to handle the double click of an item.
</p>

<dl>

<dt><i>itm</i> (QTreeWidgetItem)</dt>
<dd>
reference to the item that was double clicked (ignored)
</dd>
</dl>
<a NAME="ExceptionLogger.__openSource" ID="ExceptionLogger.__openSource"></a>
<h4>ExceptionLogger.__openSource</h4>
<b>__openSource</b>(<i></i>)
<p>
        Private slot to handle a double click on an entry.
</p>

<a NAME="ExceptionLogger.__showContextMenu" ID="ExceptionLogger.__showContextMenu"></a>
<h4>ExceptionLogger.__showContextMenu</h4>
<b>__showContextMenu</b>(<i>coord</i>)
<p>
        Private slot to show the context menu of the view.
</p>

<dl>

<dt><i>coord</i> (QPoint)</dt>
<dd>
global coordinates of the mouse pointer
</dd>
</dl>
<a NAME="ExceptionLogger.addException" ID="ExceptionLogger.addException"></a>
<h4>ExceptionLogger.addException</h4>
<b>addException</b>(<i>exceptionType, exceptionMessage, stackTrace, debuggerId</i>)
<p>
        Public slot to handle the arrival of a new exception.
</p>

<dl>

<dt><i>exceptionType</i> (str)</dt>
<dd>
type of exception raised
</dd>
<dt><i>exceptionMessage</i> (str)</dt>
<dd>
message given by the exception
</dd>
<dt><i>stackTrace</i> (list)</dt>
<dd>
list of stack entries
</dd>
<dt><i>debuggerId</i> (str)</dt>
<dd>
ID of the debugger backend
</dd>
</dl>
<a NAME="ExceptionLogger.debuggingStarted" ID="ExceptionLogger.debuggingStarted"></a>
<h4>ExceptionLogger.debuggingStarted</h4>
<b>debuggingStarted</b>(<i></i>)
<p>
        Public slot to clear the listview upon starting a new debugging
        session.
</p>

<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial