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 Module implementing the Exception Logger widget. |
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>Class implementing the Exception Logger widget.</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 Class implementing the Exception Logger widget. |
46 Class implementing the Exception Logger widget. |
47 </p><p> |
47 </p><p> |
48 This class displays a log of all exceptions having occured during |
48 This class displays a log of all exceptions having occured during |
49 a debugging session. |
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 emitted to open a source file at a line |
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>Constructor</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>Private method to open the configuration dialog.</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>Private slot to handle the double click of an item.</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>Private slot to handle a double click on an entry.</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>Private slot to show the context menu of the listview.</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>Public slot to handle the arrival of a new exception.</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>Public slot to clear the listview upon starting a new debugging session.</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 Constructor |
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 the parent widget of this widget |
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 Private method to open the configuration dialog. |
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 Private slot to handle the double click of an item. |
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 the item that was double clicked(QTreeWidgetItem), ignored |
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 Private slot to handle a double click on an entry. |
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 Private slot to show the context menu of the listview. |
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 the global coordinates of the mouse pointer (QPoint) |
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 Public slot to handle the arrival of a new exception. |
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 type of exception raised (string) |
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 message given by the exception (string) |
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 list of stack entries. |
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 Public slot to clear the listview upon starting a new debugging session. |
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> |