|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Debugger.CallStackViewer</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.CallStackViewer</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing the Call Stack viewer 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="#CallStackViewer">CallStackViewer</a></td> |
|
39 <td>Class implementing the Call Stack viewer 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="CallStackViewer" ID="CallStackViewer"></a> |
|
50 <h2>CallStackViewer</h2> |
|
51 |
|
52 <p> |
|
53 Class implementing the Call Stack viewer widget. |
|
54 </p> |
|
55 <h3>Signals</h3> |
|
56 <dl> |
|
57 |
|
58 <dt>frameSelected(int)</dt> |
|
59 <dd> |
|
60 emitted to signal the selection of a frame entry |
|
61 </dd> |
|
62 <dt>sourceFile(str, int)</dt> |
|
63 <dd> |
|
64 emitted to show the source of a stack entry |
|
65 </dd> |
|
66 </dl> |
|
67 <h3>Derived from</h3> |
|
68 QWidget |
|
69 <h3>Class Attributes</h3> |
|
70 |
|
71 <table> |
|
72 <tr><td>FilenameRole</td></tr><tr><td>LinenoRole</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="#CallStackViewer.__init__">CallStackViewer</a></td> |
|
85 <td>Constructor</td> |
|
86 </tr> |
|
87 <tr> |
|
88 <td><a href="#CallStackViewer.__itemDoubleClicked">__itemDoubleClicked</a></td> |
|
89 <td>Private slot to handle a double click of a stack entry.</td> |
|
90 </tr> |
|
91 <tr> |
|
92 <td><a href="#CallStackViewer.__openSource">__openSource</a></td> |
|
93 <td>Private slot to show the source for the selected stack entry.</td> |
|
94 </tr> |
|
95 <tr> |
|
96 <td><a href="#CallStackViewer.__saveStackTrace">__saveStackTrace</a></td> |
|
97 <td>Private slot to save the stack trace info to a file.</td> |
|
98 </tr> |
|
99 <tr> |
|
100 <td><a href="#CallStackViewer.__showCallStack">__showCallStack</a></td> |
|
101 <td>Private slot to show the call stack of the program being debugged.</td> |
|
102 </tr> |
|
103 <tr> |
|
104 <td><a href="#CallStackViewer.__showContextMenu">__showContextMenu</a></td> |
|
105 <td>Private slot to show the context menu.</td> |
|
106 </tr> |
|
107 <tr> |
|
108 <td><a href="#CallStackViewer.clear">clear</a></td> |
|
109 <td>Public method to clear the stack viewer data.</td> |
|
110 </tr> |
|
111 <tr> |
|
112 <td><a href="#CallStackViewer.setDebugger">setDebugger</a></td> |
|
113 <td>Public method to set a reference to the Debug UI.</td> |
|
114 </tr> |
|
115 <tr> |
|
116 <td><a href="#CallStackViewer.setProjectMode">setProjectMode</a></td> |
|
117 <td>Public slot to set the call trace viewer to project mode.</td> |
|
118 </tr> |
|
119 </table> |
|
120 <h3>Static Methods</h3> |
|
121 |
|
122 <table> |
|
123 <tr><td>None</td></tr> |
|
124 </table> |
|
125 |
|
126 <a NAME="CallStackViewer.__init__" ID="CallStackViewer.__init__"></a> |
|
127 <h4>CallStackViewer (Constructor)</h4> |
|
128 <b>CallStackViewer</b>(<i>debugServer, parent=None</i>) |
|
129 |
|
130 <p> |
|
131 Constructor |
|
132 </p> |
|
133 <dl> |
|
134 |
|
135 <dt><i>debugServer</i> (DebugServer)</dt> |
|
136 <dd> |
|
137 reference to the debug server object |
|
138 </dd> |
|
139 <dt><i>parent</i> (QWidget)</dt> |
|
140 <dd> |
|
141 reference to the parent widget |
|
142 </dd> |
|
143 </dl> |
|
144 <a NAME="CallStackViewer.__itemDoubleClicked" ID="CallStackViewer.__itemDoubleClicked"></a> |
|
145 <h4>CallStackViewer.__itemDoubleClicked</h4> |
|
146 <b>__itemDoubleClicked</b>(<i>itm</i>) |
|
147 |
|
148 <p> |
|
149 Private slot to handle a double click of a stack entry. |
|
150 </p> |
|
151 <dl> |
|
152 |
|
153 <dt><i>itm</i> (QTreeWidgetItem)</dt> |
|
154 <dd> |
|
155 reference to the double clicked item |
|
156 </dd> |
|
157 </dl> |
|
158 <a NAME="CallStackViewer.__openSource" ID="CallStackViewer.__openSource"></a> |
|
159 <h4>CallStackViewer.__openSource</h4> |
|
160 <b>__openSource</b>(<i></i>) |
|
161 |
|
162 <p> |
|
163 Private slot to show the source for the selected stack entry. |
|
164 </p> |
|
165 <a NAME="CallStackViewer.__saveStackTrace" ID="CallStackViewer.__saveStackTrace"></a> |
|
166 <h4>CallStackViewer.__saveStackTrace</h4> |
|
167 <b>__saveStackTrace</b>(<i></i>) |
|
168 |
|
169 <p> |
|
170 Private slot to save the stack trace info to a file. |
|
171 </p> |
|
172 <a NAME="CallStackViewer.__showCallStack" ID="CallStackViewer.__showCallStack"></a> |
|
173 <h4>CallStackViewer.__showCallStack</h4> |
|
174 <b>__showCallStack</b>(<i>stack, debuggerId</i>) |
|
175 |
|
176 <p> |
|
177 Private slot to show the call stack of the program being debugged. |
|
178 </p> |
|
179 <dl> |
|
180 |
|
181 <dt><i>stack</i> (list of tuples of (str, str, str, str))</dt> |
|
182 <dd> |
|
183 list of tuples with call stack data (file name, |
|
184 line number, function name, formatted argument/values list) |
|
185 </dd> |
|
186 <dt><i>debuggerId</i> (str)</dt> |
|
187 <dd> |
|
188 ID of the debugger backend |
|
189 </dd> |
|
190 </dl> |
|
191 <a NAME="CallStackViewer.__showContextMenu" ID="CallStackViewer.__showContextMenu"></a> |
|
192 <h4>CallStackViewer.__showContextMenu</h4> |
|
193 <b>__showContextMenu</b>(<i>coord</i>) |
|
194 |
|
195 <p> |
|
196 Private slot to show the context menu. |
|
197 </p> |
|
198 <dl> |
|
199 |
|
200 <dt><i>coord</i> (QPoint)</dt> |
|
201 <dd> |
|
202 the position of the mouse pointer |
|
203 </dd> |
|
204 </dl> |
|
205 <a NAME="CallStackViewer.clear" ID="CallStackViewer.clear"></a> |
|
206 <h4>CallStackViewer.clear</h4> |
|
207 <b>clear</b>(<i></i>) |
|
208 |
|
209 <p> |
|
210 Public method to clear the stack viewer data. |
|
211 </p> |
|
212 <a NAME="CallStackViewer.setDebugger" ID="CallStackViewer.setDebugger"></a> |
|
213 <h4>CallStackViewer.setDebugger</h4> |
|
214 <b>setDebugger</b>(<i>debugUI</i>) |
|
215 |
|
216 <p> |
|
217 Public method to set a reference to the Debug UI. |
|
218 </p> |
|
219 <dl> |
|
220 |
|
221 <dt><i>debugUI</i> (DebugUI)</dt> |
|
222 <dd> |
|
223 reference to the DebugUI object |
|
224 </dd> |
|
225 </dl> |
|
226 <a NAME="CallStackViewer.setProjectMode" ID="CallStackViewer.setProjectMode"></a> |
|
227 <h4>CallStackViewer.setProjectMode</h4> |
|
228 <b>setProjectMode</b>(<i>enabled</i>) |
|
229 |
|
230 <p> |
|
231 Public slot to set the call trace viewer to project mode. |
|
232 </p> |
|
233 <p> |
|
234 In project mode the call trace info is shown with project relative |
|
235 path names. |
|
236 </p> |
|
237 <dl> |
|
238 |
|
239 <dt><i>enabled</i> (bool)</dt> |
|
240 <dd> |
|
241 flag indicating to enable the project mode |
|
242 </dd> |
|
243 </dl> |
|
244 <div align="right"><a href="#top">Up</a></div> |
|
245 <hr /> |
|
246 </body></html> |