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

branch
eric7
changeset 10479
856476537696
parent 9209
b99e7fd55fd3
equal deleted inserted replaced
10478:de9106c55c3d 10479:856476537696
5 <link rel="stylesheet" href="styles.css"> 5 <link rel="stylesheet" href="styles.css">
6 </head> 6 </head>
7 <body> 7 <body>
8 <a NAME="top" ID="top"></a> 8 <a NAME="top" ID="top"></a>
9 <h1>eric7.Debugger.CallStackViewer</h1> 9 <h1>eric7.Debugger.CallStackViewer</h1>
10
11 <p> 10 <p>
12 Module implementing the Call Stack viewer widget. 11 Module implementing the Call Stack viewer widget.
13 </p> 12 </p>
13
14 <h3>Global Attributes</h3> 14 <h3>Global Attributes</h3>
15 15 <table>
16 <table> 16 <tr><td>None</td></tr>
17 <tr><td>None</td></tr> 17 </table>
18 </table> 18
19 <h3>Classes</h3> 19 <h3>Classes</h3>
20 20 <table>
21 <table>
22
23 <tr> 21 <tr>
24 <td><a href="#CallStackViewer">CallStackViewer</a></td> 22 <td><a href="#CallStackViewer">CallStackViewer</a></td>
25 <td>Class implementing the Call Stack viewer widget.</td> 23 <td>Class implementing the Call Stack viewer widget.</td>
26 </tr> 24 </tr>
27 </table> 25 </table>
26
28 <h3>Functions</h3> 27 <h3>Functions</h3>
29 28 <table>
30 <table> 29 <tr><td>None</td></tr>
31 <tr><td>None</td></tr> 30 </table>
32 </table> 31
33 <hr /> 32 <hr />
34 <hr /> 33 <hr />
35 <a NAME="CallStackViewer" ID="CallStackViewer"></a> 34 <a NAME="CallStackViewer" ID="CallStackViewer"></a>
36 <h2>CallStackViewer</h2> 35 <h2>CallStackViewer</h2>
37
38 <p> 36 <p>
39 Class implementing the Call Stack viewer widget. 37 Class implementing the Call Stack viewer widget.
40 </p> 38 </p>
39
41 <h3>Signals</h3> 40 <h3>Signals</h3>
42 <dl> 41 <dl>
43 42
44 <dt>frameSelected(int)</dt> 43 <dt>frameSelected(int)</dt>
45 <dd> 44 <dd>
51 </dd> 50 </dd>
52 </dl> 51 </dl>
53 <h3>Derived from</h3> 52 <h3>Derived from</h3>
54 QWidget 53 QWidget
55 <h3>Class Attributes</h3> 54 <h3>Class Attributes</h3>
56 55 <table>
57 <table> 56 <tr><td>FilenameRole</td></tr>
58 <tr><td>FilenameRole</td></tr><tr><td>LinenoRole</td></tr> 57 <tr><td>LinenoRole</td></tr>
59 </table> 58 </table>
59
60 <h3>Class Methods</h3> 60 <h3>Class Methods</h3>
61 61 <table>
62 <table> 62 <tr><td>None</td></tr>
63 <tr><td>None</td></tr> 63 </table>
64 </table> 64
65 <h3>Methods</h3> 65 <h3>Methods</h3>
66 66 <table>
67 <table>
68
69 <tr> 67 <tr>
70 <td><a href="#CallStackViewer.__init__">CallStackViewer</a></td> 68 <td><a href="#CallStackViewer.__init__">CallStackViewer</a></td>
71 <td>Constructor</td> 69 <td>Constructor</td>
72 </tr> 70 </tr>
73 <tr> 71 <tr>
101 <tr> 99 <tr>
102 <td><a href="#CallStackViewer.setProjectMode">setProjectMode</a></td> 100 <td><a href="#CallStackViewer.setProjectMode">setProjectMode</a></td>
103 <td>Public slot to set the call trace viewer to project mode.</td> 101 <td>Public slot to set the call trace viewer to project mode.</td>
104 </tr> 102 </tr>
105 </table> 103 </table>
104
106 <h3>Static Methods</h3> 105 <h3>Static Methods</h3>
107 106 <table>
108 <table> 107 <tr><td>None</td></tr>
109 <tr><td>None</td></tr> 108 </table>
110 </table> 109
111 110
112 <a NAME="CallStackViewer.__init__" ID="CallStackViewer.__init__"></a> 111 <a NAME="CallStackViewer.__init__" ID="CallStackViewer.__init__"></a>
113 <h4>CallStackViewer (Constructor)</h4> 112 <h4>CallStackViewer (Constructor)</h4>
114 <b>CallStackViewer</b>(<i>debugServer, parent=None</i>) 113 <b>CallStackViewer</b>(<i>debugServer, parent=None</i>)
115
116 <p> 114 <p>
117 Constructor 115 Constructor
118 </p> 116 </p>
117
119 <dl> 118 <dl>
120 119
121 <dt><i>debugServer</i> (DebugServer)</dt> 120 <dt><i>debugServer</i> (DebugServer)</dt>
122 <dd> 121 <dd>
123 reference to the debug server object 122 reference to the debug server object
128 </dd> 127 </dd>
129 </dl> 128 </dl>
130 <a NAME="CallStackViewer.__itemDoubleClicked" ID="CallStackViewer.__itemDoubleClicked"></a> 129 <a NAME="CallStackViewer.__itemDoubleClicked" ID="CallStackViewer.__itemDoubleClicked"></a>
131 <h4>CallStackViewer.__itemDoubleClicked</h4> 130 <h4>CallStackViewer.__itemDoubleClicked</h4>
132 <b>__itemDoubleClicked</b>(<i>itm</i>) 131 <b>__itemDoubleClicked</b>(<i>itm</i>)
133
134 <p> 132 <p>
135 Private slot to handle a double click of a stack entry. 133 Private slot to handle a double click of a stack entry.
136 </p> 134 </p>
135
137 <dl> 136 <dl>
138 137
139 <dt><i>itm</i> (QTreeWidgetItem)</dt> 138 <dt><i>itm</i> (QTreeWidgetItem)</dt>
140 <dd> 139 <dd>
141 reference to the double clicked item 140 reference to the double clicked item
142 </dd> 141 </dd>
143 </dl> 142 </dl>
144 <a NAME="CallStackViewer.__openSource" ID="CallStackViewer.__openSource"></a> 143 <a NAME="CallStackViewer.__openSource" ID="CallStackViewer.__openSource"></a>
145 <h4>CallStackViewer.__openSource</h4> 144 <h4>CallStackViewer.__openSource</h4>
146 <b>__openSource</b>(<i></i>) 145 <b>__openSource</b>(<i></i>)
147
148 <p> 146 <p>
149 Private slot to show the source for the selected stack entry. 147 Private slot to show the source for the selected stack entry.
150 </p> 148 </p>
149
151 <a NAME="CallStackViewer.__saveStackTrace" ID="CallStackViewer.__saveStackTrace"></a> 150 <a NAME="CallStackViewer.__saveStackTrace" ID="CallStackViewer.__saveStackTrace"></a>
152 <h4>CallStackViewer.__saveStackTrace</h4> 151 <h4>CallStackViewer.__saveStackTrace</h4>
153 <b>__saveStackTrace</b>(<i></i>) 152 <b>__saveStackTrace</b>(<i></i>)
154
155 <p> 153 <p>
156 Private slot to save the stack trace info to a file. 154 Private slot to save the stack trace info to a file.
157 </p> 155 </p>
156
158 <a NAME="CallStackViewer.__showCallStack" ID="CallStackViewer.__showCallStack"></a> 157 <a NAME="CallStackViewer.__showCallStack" ID="CallStackViewer.__showCallStack"></a>
159 <h4>CallStackViewer.__showCallStack</h4> 158 <h4>CallStackViewer.__showCallStack</h4>
160 <b>__showCallStack</b>(<i>stack, debuggerId</i>) 159 <b>__showCallStack</b>(<i>stack, debuggerId</i>)
161
162 <p> 160 <p>
163 Private slot to show the call stack of the program being debugged. 161 Private slot to show the call stack of the program being debugged.
164 </p> 162 </p>
163
165 <dl> 164 <dl>
166 165
167 <dt><i>stack</i> (list of tuples of (str, str, str, str))</dt> 166 <dt><i>stack</i> (list of tuples of (str, str, str, str))</dt>
168 <dd> 167 <dd>
169 list of tuples with call stack data (file name, 168 list of tuples with call stack data (file name,
175 </dd> 174 </dd>
176 </dl> 175 </dl>
177 <a NAME="CallStackViewer.__showContextMenu" ID="CallStackViewer.__showContextMenu"></a> 176 <a NAME="CallStackViewer.__showContextMenu" ID="CallStackViewer.__showContextMenu"></a>
178 <h4>CallStackViewer.__showContextMenu</h4> 177 <h4>CallStackViewer.__showContextMenu</h4>
179 <b>__showContextMenu</b>(<i>coord</i>) 178 <b>__showContextMenu</b>(<i>coord</i>)
180
181 <p> 179 <p>
182 Private slot to show the context menu. 180 Private slot to show the context menu.
183 </p> 181 </p>
182
184 <dl> 183 <dl>
185 184
186 <dt><i>coord</i> (QPoint)</dt> 185 <dt><i>coord</i> (QPoint)</dt>
187 <dd> 186 <dd>
188 the position of the mouse pointer 187 the position of the mouse pointer
189 </dd> 188 </dd>
190 </dl> 189 </dl>
191 <a NAME="CallStackViewer.clear" ID="CallStackViewer.clear"></a> 190 <a NAME="CallStackViewer.clear" ID="CallStackViewer.clear"></a>
192 <h4>CallStackViewer.clear</h4> 191 <h4>CallStackViewer.clear</h4>
193 <b>clear</b>(<i></i>) 192 <b>clear</b>(<i></i>)
194
195 <p> 193 <p>
196 Public method to clear the stack viewer data. 194 Public method to clear the stack viewer data.
197 </p> 195 </p>
196
198 <a NAME="CallStackViewer.setDebugger" ID="CallStackViewer.setDebugger"></a> 197 <a NAME="CallStackViewer.setDebugger" ID="CallStackViewer.setDebugger"></a>
199 <h4>CallStackViewer.setDebugger</h4> 198 <h4>CallStackViewer.setDebugger</h4>
200 <b>setDebugger</b>(<i>debugUI</i>) 199 <b>setDebugger</b>(<i>debugUI</i>)
201
202 <p> 200 <p>
203 Public method to set a reference to the Debug UI. 201 Public method to set a reference to the Debug UI.
204 </p> 202 </p>
203
205 <dl> 204 <dl>
206 205
207 <dt><i>debugUI</i> (DebugUI)</dt> 206 <dt><i>debugUI</i> (DebugUI)</dt>
208 <dd> 207 <dd>
209 reference to the DebugUI object 208 reference to the DebugUI object
210 </dd> 209 </dd>
211 </dl> 210 </dl>
212 <a NAME="CallStackViewer.setProjectMode" ID="CallStackViewer.setProjectMode"></a> 211 <a NAME="CallStackViewer.setProjectMode" ID="CallStackViewer.setProjectMode"></a>
213 <h4>CallStackViewer.setProjectMode</h4> 212 <h4>CallStackViewer.setProjectMode</h4>
214 <b>setProjectMode</b>(<i>enabled</i>) 213 <b>setProjectMode</b>(<i>enabled</i>)
215
216 <p> 214 <p>
217 Public slot to set the call trace viewer to project mode. 215 Public slot to set the call trace viewer to project mode.
218 </p> 216 </p>
219 <p> 217 <p>
220 In project mode the call trace info is shown with project relative 218 In project mode the call trace info is shown with project relative
221 path names. 219 path names.
222 </p> 220 </p>
221
223 <dl> 222 <dl>
224 223
225 <dt><i>enabled</i> (bool)</dt> 224 <dt><i>enabled</i> (bool)</dt>
226 <dd> 225 <dd>
227 flag indicating to enable the project mode 226 flag indicating to enable the project mode

eric ide

mercurial