|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Debugger.ExceptionLogger</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body> |
|
22 <a NAME="top" ID="top"></a> |
|
23 <h1>eric7.Debugger.ExceptionLogger</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing the Exception Logger widget. |
|
27 </p> |
|
28 <h3>Global Attributes</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <h3>Classes</h3> |
|
34 |
|
35 <table> |
|
36 |
|
37 <tr> |
|
38 <td><a href="#ExceptionLogger">ExceptionLogger</a></td> |
|
39 <td>Class implementing the Exception Logger widget.</td> |
|
40 </tr> |
|
41 </table> |
|
42 <h3>Functions</h3> |
|
43 |
|
44 <table> |
|
45 <tr><td>None</td></tr> |
|
46 </table> |
|
47 <hr /> |
|
48 <hr /> |
|
49 <a NAME="ExceptionLogger" ID="ExceptionLogger"></a> |
|
50 <h2>ExceptionLogger</h2> |
|
51 |
|
52 <p> |
|
53 Class implementing the Exception Logger widget. |
|
54 </p> |
|
55 <p> |
|
56 This class displays a log of all exceptions having occured during |
|
57 a debugging session. |
|
58 </p> |
|
59 <h3>Signals</h3> |
|
60 <dl> |
|
61 |
|
62 <dt>sourceFile(string, int)</dt> |
|
63 <dd> |
|
64 emitted to open a source file at a line |
|
65 </dd> |
|
66 </dl> |
|
67 <h3>Derived from</h3> |
|
68 QTreeWidget |
|
69 <h3>Class Attributes</h3> |
|
70 |
|
71 <table> |
|
72 <tr><td>None</td></tr> |
|
73 </table> |
|
74 <h3>Class Methods</h3> |
|
75 |
|
76 <table> |
|
77 <tr><td>None</td></tr> |
|
78 </table> |
|
79 <h3>Methods</h3> |
|
80 |
|
81 <table> |
|
82 |
|
83 <tr> |
|
84 <td><a href="#ExceptionLogger.__init__">ExceptionLogger</a></td> |
|
85 <td>Constructor</td> |
|
86 </tr> |
|
87 <tr> |
|
88 <td><a href="#ExceptionLogger.__configure">__configure</a></td> |
|
89 <td>Private method to open the configuration dialog.</td> |
|
90 </tr> |
|
91 <tr> |
|
92 <td><a href="#ExceptionLogger.__itemDoubleClicked">__itemDoubleClicked</a></td> |
|
93 <td>Private slot to handle the double click of an item.</td> |
|
94 </tr> |
|
95 <tr> |
|
96 <td><a href="#ExceptionLogger.__openSource">__openSource</a></td> |
|
97 <td>Private slot to handle a double click on an entry.</td> |
|
98 </tr> |
|
99 <tr> |
|
100 <td><a href="#ExceptionLogger.__showContextMenu">__showContextMenu</a></td> |
|
101 <td>Private slot to show the context menu of the listview.</td> |
|
102 </tr> |
|
103 <tr> |
|
104 <td><a href="#ExceptionLogger.addException">addException</a></td> |
|
105 <td>Public slot to handle the arrival of a new exception.</td> |
|
106 </tr> |
|
107 <tr> |
|
108 <td><a href="#ExceptionLogger.debuggingStarted">debuggingStarted</a></td> |
|
109 <td>Public slot to clear the listview upon starting a new debugging session.</td> |
|
110 </tr> |
|
111 </table> |
|
112 <h3>Static Methods</h3> |
|
113 |
|
114 <table> |
|
115 <tr><td>None</td></tr> |
|
116 </table> |
|
117 |
|
118 <a NAME="ExceptionLogger.__init__" ID="ExceptionLogger.__init__"></a> |
|
119 <h4>ExceptionLogger (Constructor)</h4> |
|
120 <b>ExceptionLogger</b>(<i>parent=None</i>) |
|
121 |
|
122 <p> |
|
123 Constructor |
|
124 </p> |
|
125 <dl> |
|
126 |
|
127 <dt><i>parent</i></dt> |
|
128 <dd> |
|
129 the parent widget of this widget |
|
130 </dd> |
|
131 </dl> |
|
132 <a NAME="ExceptionLogger.__configure" ID="ExceptionLogger.__configure"></a> |
|
133 <h4>ExceptionLogger.__configure</h4> |
|
134 <b>__configure</b>(<i></i>) |
|
135 |
|
136 <p> |
|
137 Private method to open the configuration dialog. |
|
138 </p> |
|
139 <a NAME="ExceptionLogger.__itemDoubleClicked" ID="ExceptionLogger.__itemDoubleClicked"></a> |
|
140 <h4>ExceptionLogger.__itemDoubleClicked</h4> |
|
141 <b>__itemDoubleClicked</b>(<i>itm</i>) |
|
142 |
|
143 <p> |
|
144 Private slot to handle the double click of an item. |
|
145 </p> |
|
146 <dl> |
|
147 |
|
148 <dt><i>itm</i></dt> |
|
149 <dd> |
|
150 the item that was double clicked(QTreeWidgetItem), ignored |
|
151 </dd> |
|
152 </dl> |
|
153 <a NAME="ExceptionLogger.__openSource" ID="ExceptionLogger.__openSource"></a> |
|
154 <h4>ExceptionLogger.__openSource</h4> |
|
155 <b>__openSource</b>(<i></i>) |
|
156 |
|
157 <p> |
|
158 Private slot to handle a double click on an entry. |
|
159 </p> |
|
160 <a NAME="ExceptionLogger.__showContextMenu" ID="ExceptionLogger.__showContextMenu"></a> |
|
161 <h4>ExceptionLogger.__showContextMenu</h4> |
|
162 <b>__showContextMenu</b>(<i>coord</i>) |
|
163 |
|
164 <p> |
|
165 Private slot to show the context menu of the listview. |
|
166 </p> |
|
167 <dl> |
|
168 |
|
169 <dt><i>coord</i></dt> |
|
170 <dd> |
|
171 the global coordinates of the mouse pointer (QPoint) |
|
172 </dd> |
|
173 </dl> |
|
174 <a NAME="ExceptionLogger.addException" ID="ExceptionLogger.addException"></a> |
|
175 <h4>ExceptionLogger.addException</h4> |
|
176 <b>addException</b>(<i>exceptionType, exceptionMessage, stackTrace, debuggerId</i>) |
|
177 |
|
178 <p> |
|
179 Public slot to handle the arrival of a new exception. |
|
180 </p> |
|
181 <dl> |
|
182 |
|
183 <dt><i>exceptionType</i> (str)</dt> |
|
184 <dd> |
|
185 type of exception raised |
|
186 </dd> |
|
187 <dt><i>exceptionMessage</i> (str)</dt> |
|
188 <dd> |
|
189 message given by the exception |
|
190 </dd> |
|
191 <dt><i>stackTrace</i> (list)</dt> |
|
192 <dd> |
|
193 list of stack entries |
|
194 </dd> |
|
195 <dt><i>debuggerId</i> (str)</dt> |
|
196 <dd> |
|
197 ID of the debugger backend |
|
198 </dd> |
|
199 </dl> |
|
200 <a NAME="ExceptionLogger.debuggingStarted" ID="ExceptionLogger.debuggingStarted"></a> |
|
201 <h4>ExceptionLogger.debuggingStarted</h4> |
|
202 <b>debuggingStarted</b>(<i></i>) |
|
203 |
|
204 <p> |
|
205 Public slot to clear the listview upon starting a new debugging |
|
206 session. |
|
207 </p> |
|
208 <div align="right"><a href="#top">Up</a></div> |
|
209 <hr /> |
|
210 </body></html> |