Documentation/Source/eric5.Debugger.ExceptionLogger.html

changeset 58
37f0444c3479
parent 21
b88a0e6268bd
child 409
0ea528e80202
equal deleted inserted replaced
57:81326a94fdca 58:37f0444c3479
20 </style> 20 </style>
21 </head> 21 </head>
22 <body><a NAME="top" ID="top"></a> 22 <body><a NAME="top" ID="top"></a>
23 <h1>eric5.Debugger.ExceptionLogger</h1> 23 <h1>eric5.Debugger.ExceptionLogger</h1>
24 <p> 24 <p>
25 &#77;&#111;&#100;&#117;&#108;&#101; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#69;x&#99;&#101;&#112;&#116;&#105;&#111;&#110; &#76;&#111;&#103;&#103;&#101;&#114; w&#105;&#100;&#103;&#101;&#116;. 25 Module implementing the Exception Logger widget.
26 </p> 26 </p>
27 <h3>Global Attributes</h3> 27 <h3>Global Attributes</h3>
28 <table> 28 <table>
29 <tr><td>None</td></tr> 29 <tr><td>None</td></tr>
30 </table> 30 </table>
31 <h3>Classes</h3> 31 <h3>Classes</h3>
32 <table> 32 <table>
33 <tr> 33 <tr>
34 <td><a href="#ExceptionLogger">ExceptionLogger</a></td> 34 <td><a href="#ExceptionLogger">ExceptionLogger</a></td>
35 <td>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#69;x&#99;&#101;&#112;&#116;&#105;&#111;&#110; &#76;&#111;&#103;&#103;&#101;&#114; w&#105;&#100;&#103;&#101;&#116;.</td> 35 <td>Class implementing the Exception Logger widget.</td>
36 </tr> 36 </tr>
37 </table> 37 </table>
38 <h3>Functions</h3> 38 <h3>Functions</h3>
39 <table> 39 <table>
40 <tr><td>None</td></tr> 40 <tr><td>None</td></tr>
41 </table> 41 </table>
42 <hr /><hr /> 42 <hr /><hr />
43 <a NAME="ExceptionLogger" ID="ExceptionLogger"></a> 43 <a NAME="ExceptionLogger" ID="ExceptionLogger"></a>
44 <h2>ExceptionLogger</h2> 44 <h2>ExceptionLogger</h2>
45 <p> 45 <p>
46 &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#69;x&#99;&#101;&#112;&#116;&#105;&#111;&#110; &#76;&#111;&#103;&#103;&#101;&#114; w&#105;&#100;&#103;&#101;&#116;. 46 Class implementing the Exception Logger widget.
47 </p><p> 47 </p><p>
48 &#84;&#104;&#105;&#115; &#99;&#108;&#97;&#115;&#115; &#100;&#105;&#115;&#112;&#108;&#97;y&#115; &#97; &#108;&#111;&#103; &#111;&#102; &#97;&#108;&#108; &#101;x&#99;&#101;&#112;&#116;&#105;&#111;&#110;&#115; &#104;&#97;v&#105;&#110;&#103; &#111;&#99;&#99;&#117;&#114;&#101;&#100; &#100;&#117;&#114;&#105;&#110;&#103; 48 This class displays a log of all exceptions having occured during
49 &#97; &#100;&#101;&#98;&#117;&#103;&#103;&#105;&#110;&#103; &#115;&#101;&#115;&#115;&#105;&#111;&#110;. 49 a debugging session.
50 </p><h4>Signals</h4> 50 </p><h4>Signals</h4>
51 <dl> 51 <dl>
52 <dt>sourceFile(string, int)</dt> 52 <dt>sourceFile(string, int)</dt>
53 <dd> 53 <dd>
54 &#101;&#109;&#105;&#116;&#116;&#101;&#100; &#116;&#111; &#111;&#112;&#101;&#110; &#97; &#115;&#111;&#117;&#114;&#99;&#101; &#102;&#105;&#108;&#101; &#97;&#116; &#97; &#108;&#105;&#110;&#101; 54 emitted to open a source file at a line
55 </dd> 55 </dd>
56 </dl> 56 </dl>
57 <h3>Derived from</h3> 57 <h3>Derived from</h3>
58 QTreeWidget 58 QTreeWidget
59 <h3>Class Attributes</h3> 59 <h3>Class Attributes</h3>
62 </table> 62 </table>
63 <h3>Methods</h3> 63 <h3>Methods</h3>
64 <table> 64 <table>
65 <tr> 65 <tr>
66 <td><a href="#ExceptionLogger.__init__">ExceptionLogger</a></td> 66 <td><a href="#ExceptionLogger.__init__">ExceptionLogger</a></td>
67 <td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td> 67 <td>Constructor</td>
68 </tr><tr> 68 </tr><tr>
69 <td><a href="#ExceptionLogger.__configure">__configure</a></td> 69 <td><a href="#ExceptionLogger.__configure">__configure</a></td>
70 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#111;&#112;&#101;&#110; &#116;&#104;&#101; &#99;&#111;&#110;&#102;&#105;&#103;&#117;&#114;&#97;&#116;&#105;&#111;&#110; &#100;&#105;&#97;&#108;&#111;&#103;.</td> 70 <td>Private method to open the configuration dialog.</td>
71 </tr><tr> 71 </tr><tr>
72 <td><a href="#ExceptionLogger.__itemDoubleClicked">__itemDoubleClicked</a></td> 72 <td><a href="#ExceptionLogger.__itemDoubleClicked">__itemDoubleClicked</a></td>
73 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#100;&#111;&#117;&#98;&#108;&#101; &#99;&#108;&#105;&#99;&#107; &#111;&#102; &#97;&#110; &#105;&#116;&#101;&#109;.</td> 73 <td>Private slot to handle the double click of an item.</td>
74 </tr><tr> 74 </tr><tr>
75 <td><a href="#ExceptionLogger.__openSource">__openSource</a></td> 75 <td><a href="#ExceptionLogger.__openSource">__openSource</a></td>
76 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#97; &#100;&#111;&#117;&#98;&#108;&#101; &#99;&#108;&#105;&#99;&#107; &#111;&#110; &#97;&#110; &#101;&#110;&#116;&#114;y.</td> 76 <td>Private slot to handle a double click on an entry.</td>
77 </tr><tr> 77 </tr><tr>
78 <td><a href="#ExceptionLogger.__showContextMenu">__showContextMenu</a></td> 78 <td><a href="#ExceptionLogger.__showContextMenu">__showContextMenu</a></td>
79 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#115;&#104;&#111;w &#116;&#104;&#101; &#99;&#111;&#110;&#116;&#101;x&#116; &#109;&#101;&#110;&#117; &#111;&#102; &#116;&#104;&#101; &#108;&#105;&#115;&#116;v&#105;&#101;w.</td> 79 <td>Private slot to show the context menu of the listview.</td>
80 </tr><tr> 80 </tr><tr>
81 <td><a href="#ExceptionLogger.addException">addException</a></td> 81 <td><a href="#ExceptionLogger.addException">addException</a></td>
82 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#97;&#114;&#114;&#105;v&#97;&#108; &#111;&#102; &#97; &#110;&#101;w &#101;x&#99;&#101;&#112;&#116;&#105;&#111;&#110;.</td> 82 <td>Public slot to handle the arrival of a new exception.</td>
83 </tr><tr> 83 </tr><tr>
84 <td><a href="#ExceptionLogger.debuggingStarted">debuggingStarted</a></td> 84 <td><a href="#ExceptionLogger.debuggingStarted">debuggingStarted</a></td>
85 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#115;&#108;&#111;&#116; &#116;&#111; &#99;&#108;&#101;&#97;&#114; &#116;&#104;&#101; &#108;&#105;&#115;&#116;v&#105;&#101;w &#117;&#112;&#111;&#110; &#115;&#116;&#97;&#114;&#116;&#105;&#110;&#103; &#97; &#110;&#101;w &#100;&#101;&#98;&#117;&#103;&#103;&#105;&#110;&#103; &#115;&#101;&#115;&#115;&#105;&#111;&#110;.</td> 85 <td>Public slot to clear the listview upon starting a new debugging session.</td>
86 </tr> 86 </tr>
87 </table> 87 </table>
88 <a NAME="ExceptionLogger.__init__" ID="ExceptionLogger.__init__"></a> 88 <a NAME="ExceptionLogger.__init__" ID="ExceptionLogger.__init__"></a>
89 <h4>ExceptionLogger (Constructor)</h4> 89 <h4>ExceptionLogger (Constructor)</h4>
90 <b>ExceptionLogger</b>(<i>parent=None</i>) 90 <b>ExceptionLogger</b>(<i>parent=None</i>)
91 <p> 91 <p>
92 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114; 92 Constructor
93 </p><dl> 93 </p><dl>
94 <dt><i>parent</i></dt> 94 <dt><i>parent</i></dt>
95 <dd> 95 <dd>
96 &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; w&#105;&#100;&#103;&#101;&#116; &#111;&#102; &#116;&#104;&#105;&#115; w&#105;&#100;&#103;&#101;&#116; 96 the parent widget of this widget
97 </dd> 97 </dd>
98 </dl><a NAME="ExceptionLogger.__configure" ID="ExceptionLogger.__configure"></a> 98 </dl><a NAME="ExceptionLogger.__configure" ID="ExceptionLogger.__configure"></a>
99 <h4>ExceptionLogger.__configure</h4> 99 <h4>ExceptionLogger.__configure</h4>
100 <b>__configure</b>(<i></i>) 100 <b>__configure</b>(<i></i>)
101 <p> 101 <p>
102 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#111;&#112;&#101;&#110; &#116;&#104;&#101; &#99;&#111;&#110;&#102;&#105;&#103;&#117;&#114;&#97;&#116;&#105;&#111;&#110; &#100;&#105;&#97;&#108;&#111;&#103;. 102 Private method to open the configuration dialog.
103 </p><a NAME="ExceptionLogger.__itemDoubleClicked" ID="ExceptionLogger.__itemDoubleClicked"></a> 103 </p><a NAME="ExceptionLogger.__itemDoubleClicked" ID="ExceptionLogger.__itemDoubleClicked"></a>
104 <h4>ExceptionLogger.__itemDoubleClicked</h4> 104 <h4>ExceptionLogger.__itemDoubleClicked</h4>
105 <b>__itemDoubleClicked</b>(<i>itm</i>) 105 <b>__itemDoubleClicked</b>(<i>itm</i>)
106 <p> 106 <p>
107 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#100;&#111;&#117;&#98;&#108;&#101; &#99;&#108;&#105;&#99;&#107; &#111;&#102; &#97;&#110; &#105;&#116;&#101;&#109;. 107 Private slot to handle the double click of an item.
108 </p><dl> 108 </p><dl>
109 <dt><i>itm</i></dt> 109 <dt><i>itm</i></dt>
110 <dd> 110 <dd>
111 &#116;&#104;&#101; &#105;&#116;&#101;&#109; &#116;&#104;&#97;&#116; w&#97;&#115; &#100;&#111;&#117;&#98;&#108;&#101; &#99;&#108;&#105;&#99;&#107;&#101;&#100;(&#81;&#84;&#114;&#101;&#101;&#87;&#105;&#100;&#103;&#101;&#116;&#73;&#116;&#101;&#109;), &#105;&#103;&#110;&#111;&#114;&#101;&#100; 111 the item that was double clicked(QTreeWidgetItem), ignored
112 </dd> 112 </dd>
113 </dl><a NAME="ExceptionLogger.__openSource" ID="ExceptionLogger.__openSource"></a> 113 </dl><a NAME="ExceptionLogger.__openSource" ID="ExceptionLogger.__openSource"></a>
114 <h4>ExceptionLogger.__openSource</h4> 114 <h4>ExceptionLogger.__openSource</h4>
115 <b>__openSource</b>(<i></i>) 115 <b>__openSource</b>(<i></i>)
116 <p> 116 <p>
117 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#97; &#100;&#111;&#117;&#98;&#108;&#101; &#99;&#108;&#105;&#99;&#107; &#111;&#110; &#97;&#110; &#101;&#110;&#116;&#114;y. 117 Private slot to handle a double click on an entry.
118 </p><a NAME="ExceptionLogger.__showContextMenu" ID="ExceptionLogger.__showContextMenu"></a> 118 </p><a NAME="ExceptionLogger.__showContextMenu" ID="ExceptionLogger.__showContextMenu"></a>
119 <h4>ExceptionLogger.__showContextMenu</h4> 119 <h4>ExceptionLogger.__showContextMenu</h4>
120 <b>__showContextMenu</b>(<i>coord</i>) 120 <b>__showContextMenu</b>(<i>coord</i>)
121 <p> 121 <p>
122 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#115;&#104;&#111;w &#116;&#104;&#101; &#99;&#111;&#110;&#116;&#101;x&#116; &#109;&#101;&#110;&#117; &#111;&#102; &#116;&#104;&#101; &#108;&#105;&#115;&#116;v&#105;&#101;w. 122 Private slot to show the context menu of the listview.
123 </p><dl> 123 </p><dl>
124 <dt><i>coord</i></dt> 124 <dt><i>coord</i></dt>
125 <dd> 125 <dd>
126 &#116;&#104;&#101; &#103;&#108;&#111;&#98;&#97;&#108; &#99;&#111;&#111;&#114;&#100;&#105;&#110;&#97;&#116;&#101;&#115; &#111;&#102; &#116;&#104;&#101; &#109;&#111;&#117;&#115;&#101; &#112;&#111;&#105;&#110;&#116;&#101;&#114; (&#81;&#80;&#111;&#105;&#110;&#116;) 126 the global coordinates of the mouse pointer (QPoint)
127 </dd> 127 </dd>
128 </dl><a NAME="ExceptionLogger.addException" ID="ExceptionLogger.addException"></a> 128 </dl><a NAME="ExceptionLogger.addException" ID="ExceptionLogger.addException"></a>
129 <h4>ExceptionLogger.addException</h4> 129 <h4>ExceptionLogger.addException</h4>
130 <b>addException</b>(<i>exceptionType, exceptionMessage, stackTrace</i>) 130 <b>addException</b>(<i>exceptionType, exceptionMessage, stackTrace</i>)
131 <p> 131 <p>
132 &#80;&#117;&#98;&#108;&#105;&#99; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#97;&#114;&#114;&#105;v&#97;&#108; &#111;&#102; &#97; &#110;&#101;w &#101;x&#99;&#101;&#112;&#116;&#105;&#111;&#110;. 132 Public slot to handle the arrival of a new exception.
133 </p><dl> 133 </p><dl>
134 <dt><i>exceptionType</i></dt> 134 <dt><i>exceptionType</i></dt>
135 <dd> 135 <dd>
136 &#116;y&#112;&#101; &#111;&#102; &#101;x&#99;&#101;&#112;&#116;&#105;&#111;&#110; &#114;&#97;&#105;&#115;&#101;&#100; (&#115;&#116;&#114;&#105;&#110;&#103;) 136 type of exception raised (string)
137 </dd><dt><i>exceptionMessage</i></dt> 137 </dd><dt><i>exceptionMessage</i></dt>
138 <dd> 138 <dd>
139 &#109;&#101;&#115;&#115;&#97;&#103;&#101; &#103;&#105;v&#101;&#110; &#98;y &#116;&#104;&#101; &#101;x&#99;&#101;&#112;&#116;&#105;&#111;&#110; (&#115;&#116;&#114;&#105;&#110;&#103;) 139 message given by the exception (string)
140 </dd><dt><i>stackTrace</i></dt> 140 </dd><dt><i>stackTrace</i></dt>
141 <dd> 141 <dd>
142 &#108;&#105;&#115;&#116; &#111;&#102; &#115;&#116;&#97;&#99;&#107; &#101;&#110;&#116;&#114;&#105;&#101;&#115;. 142 list of stack entries.
143 </dd> 143 </dd>
144 </dl><a NAME="ExceptionLogger.debuggingStarted" ID="ExceptionLogger.debuggingStarted"></a> 144 </dl><a NAME="ExceptionLogger.debuggingStarted" ID="ExceptionLogger.debuggingStarted"></a>
145 <h4>ExceptionLogger.debuggingStarted</h4> 145 <h4>ExceptionLogger.debuggingStarted</h4>
146 <b>debuggingStarted</b>(<i></i>) 146 <b>debuggingStarted</b>(<i></i>)
147 <p> 147 <p>
148 &#80;&#117;&#98;&#108;&#105;&#99; &#115;&#108;&#111;&#116; &#116;&#111; &#99;&#108;&#101;&#97;&#114; &#116;&#104;&#101; &#108;&#105;&#115;&#116;v&#105;&#101;w &#117;&#112;&#111;&#110; &#115;&#116;&#97;&#114;&#116;&#105;&#110;&#103; &#97; &#110;&#101;w &#100;&#101;&#98;&#117;&#103;&#103;&#105;&#110;&#103; &#115;&#101;&#115;&#115;&#105;&#111;&#110;. 148 Public slot to clear the listview upon starting a new debugging session.
149 </p> 149 </p>
150 <div align="right"><a href="#top">Up</a></div> 150 <div align="right"><a href="#top">Up</a></div>
151 <hr /> 151 <hr />
152 </body></html> 152 </body></html>

eric ide

mercurial