16 |
16 |
17 a { color: #BA6D36; } |
17 a { color: #BA6D36; } |
18 |
18 |
19 </style> |
19 </style> |
20 </head> |
20 </head> |
21 <body><a NAME="top" ID="top"></a> |
21 <body> |
|
22 <a NAME="top" ID="top"></a> |
22 <h1>eric6.Debugger.CallStackViewer</h1> |
23 <h1>eric6.Debugger.CallStackViewer</h1> |
|
24 |
23 <p> |
25 <p> |
24 Module implementing the Call Stack viewer widget. |
26 Module implementing the Call Stack viewer widget. |
25 </p> |
27 </p> |
26 <h3>Global Attributes</h3> |
28 <h3>Global Attributes</h3> |
|
29 |
27 <table> |
30 <table> |
28 <tr><td>None</td></tr> |
31 <tr><td>None</td></tr> |
29 </table> |
32 </table> |
30 <h3>Classes</h3> |
33 <h3>Classes</h3> |
31 <table> |
34 |
|
35 <table> |
|
36 |
32 <tr> |
37 <tr> |
33 <td><a href="#CallStackViewer">CallStackViewer</a></td> |
38 <td><a href="#CallStackViewer">CallStackViewer</a></td> |
34 <td>Class implementing the Call Stack viewer widget.</td> |
39 <td>Class implementing the Call Stack viewer widget.</td> |
35 </tr> |
40 </tr> |
36 </table> |
41 </table> |
37 <h3>Functions</h3> |
42 <h3>Functions</h3> |
38 <table> |
43 |
39 <tr><td>None</td></tr> |
44 <table> |
40 </table> |
45 <tr><td>None</td></tr> |
41 <hr /><hr /> |
46 </table> |
|
47 <hr /> |
|
48 <hr /> |
42 <a NAME="CallStackViewer" ID="CallStackViewer"></a> |
49 <a NAME="CallStackViewer" ID="CallStackViewer"></a> |
43 <h2>CallStackViewer</h2> |
50 <h2>CallStackViewer</h2> |
|
51 |
44 <p> |
52 <p> |
45 Class implementing the Call Stack viewer widget. |
53 Class implementing the Call Stack viewer widget. |
46 </p><h3>Signals</h3> |
54 </p> |
47 <dl> |
55 <h3>Signals</h3> |
|
56 <dl> |
|
57 |
48 <dt>frameSelected(int)</dt> |
58 <dt>frameSelected(int)</dt> |
49 <dd> |
59 <dd> |
50 emitted to signal the selection of a frame entry |
60 emitted to signal the selection of a frame entry |
51 </dd><dt>sourceFile(str, int)</dt> |
61 </dd> |
|
62 <dt>sourceFile(str, int)</dt> |
52 <dd> |
63 <dd> |
53 emitted to show the source of a stack entry |
64 emitted to show the source of a stack entry |
54 </dd> |
65 </dd> |
55 </dl> |
66 </dl> |
56 <h3>Derived from</h3> |
67 <h3>Derived from</h3> |
57 QTreeWidget |
68 QTreeWidget |
58 <h3>Class Attributes</h3> |
69 <h3>Class Attributes</h3> |
|
70 |
59 <table> |
71 <table> |
60 <tr><td>FilenameRole</td></tr><tr><td>LinenoRole</td></tr> |
72 <tr><td>FilenameRole</td></tr><tr><td>LinenoRole</td></tr> |
61 </table> |
73 </table> |
62 <h3>Class Methods</h3> |
74 <h3>Class Methods</h3> |
|
75 |
63 <table> |
76 <table> |
64 <tr><td>None</td></tr> |
77 <tr><td>None</td></tr> |
65 </table> |
78 </table> |
66 <h3>Methods</h3> |
79 <h3>Methods</h3> |
67 <table> |
80 |
|
81 <table> |
|
82 |
68 <tr> |
83 <tr> |
69 <td><a href="#CallStackViewer.__init__">CallStackViewer</a></td> |
84 <td><a href="#CallStackViewer.__init__">CallStackViewer</a></td> |
70 <td>Constructor</td> |
85 <td>Constructor</td> |
71 </tr><tr> |
86 </tr> |
|
87 <tr> |
72 <td><a href="#CallStackViewer.__itemDoubleClicked">__itemDoubleClicked</a></td> |
88 <td><a href="#CallStackViewer.__itemDoubleClicked">__itemDoubleClicked</a></td> |
73 <td>Private slot to handle a double click of a stack entry.</td> |
89 <td>Private slot to handle a double click of a stack entry.</td> |
74 </tr><tr> |
90 </tr> |
|
91 <tr> |
75 <td><a href="#CallStackViewer.__openSource">__openSource</a></td> |
92 <td><a href="#CallStackViewer.__openSource">__openSource</a></td> |
76 <td>Private slot to show the source for the selected stack entry.</td> |
93 <td>Private slot to show the source for the selected stack entry.</td> |
77 </tr><tr> |
94 </tr> |
|
95 <tr> |
78 <td><a href="#CallStackViewer.__saveStackTrace">__saveStackTrace</a></td> |
96 <td><a href="#CallStackViewer.__saveStackTrace">__saveStackTrace</a></td> |
79 <td>Private slot to save the stack trace info to a file.</td> |
97 <td>Private slot to save the stack trace info to a file.</td> |
80 </tr><tr> |
98 </tr> |
|
99 <tr> |
81 <td><a href="#CallStackViewer.__showCallStack">__showCallStack</a></td> |
100 <td><a href="#CallStackViewer.__showCallStack">__showCallStack</a></td> |
82 <td>Private slot to show the call stack of the program being debugged.</td> |
101 <td>Private slot to show the call stack of the program being debugged.</td> |
83 </tr><tr> |
102 </tr> |
|
103 <tr> |
84 <td><a href="#CallStackViewer.__showContextMenu">__showContextMenu</a></td> |
104 <td><a href="#CallStackViewer.__showContextMenu">__showContextMenu</a></td> |
85 <td>Private slot to show the context menu.</td> |
105 <td>Private slot to show the context menu.</td> |
86 </tr><tr> |
106 </tr> |
|
107 <tr> |
87 <td><a href="#CallStackViewer.setDebugger">setDebugger</a></td> |
108 <td><a href="#CallStackViewer.setDebugger">setDebugger</a></td> |
88 <td>Public method to set a reference to the Debug UI.</td> |
109 <td>Public method to set a reference to the Debug UI.</td> |
89 </tr><tr> |
110 </tr> |
|
111 <tr> |
90 <td><a href="#CallStackViewer.setProjectMode">setProjectMode</a></td> |
112 <td><a href="#CallStackViewer.setProjectMode">setProjectMode</a></td> |
91 <td>Public slot to set the call trace viewer to project mode.</td> |
113 <td>Public slot to set the call trace viewer to project mode.</td> |
92 </tr> |
114 </tr> |
93 </table> |
115 </table> |
94 <h3>Static Methods</h3> |
116 <h3>Static Methods</h3> |
95 <table> |
117 |
96 <tr><td>None</td></tr> |
118 <table> |
97 </table> |
119 <tr><td>None</td></tr> |
|
120 </table> |
|
121 |
98 <a NAME="CallStackViewer.__init__" ID="CallStackViewer.__init__"></a> |
122 <a NAME="CallStackViewer.__init__" ID="CallStackViewer.__init__"></a> |
99 <h4>CallStackViewer (Constructor)</h4> |
123 <h4>CallStackViewer (Constructor)</h4> |
100 <b>CallStackViewer</b>(<i>debugServer, parent=None</i>) |
124 <b>CallStackViewer</b>(<i>debugServer, parent=None</i>) |
|
125 |
101 <p> |
126 <p> |
102 Constructor |
127 Constructor |
103 </p><dl> |
128 </p> |
|
129 <dl> |
|
130 |
104 <dt><i>debugServer</i></dt> |
131 <dt><i>debugServer</i></dt> |
105 <dd> |
132 <dd> |
106 reference to the debug server object (DebugServer) |
133 reference to the debug server object (DebugServer) |
107 </dd><dt><i>parent</i></dt> |
134 </dd> |
|
135 <dt><i>parent</i></dt> |
108 <dd> |
136 <dd> |
109 reference to the parent widget (QWidget) |
137 reference to the parent widget (QWidget) |
110 </dd> |
138 </dd> |
111 </dl><a NAME="CallStackViewer.__itemDoubleClicked" ID="CallStackViewer.__itemDoubleClicked"></a> |
139 </dl> |
|
140 <a NAME="CallStackViewer.__itemDoubleClicked" ID="CallStackViewer.__itemDoubleClicked"></a> |
112 <h4>CallStackViewer.__itemDoubleClicked</h4> |
141 <h4>CallStackViewer.__itemDoubleClicked</h4> |
113 <b>__itemDoubleClicked</b>(<i>itm</i>) |
142 <b>__itemDoubleClicked</b>(<i>itm</i>) |
|
143 |
114 <p> |
144 <p> |
115 Private slot to handle a double click of a stack entry. |
145 Private slot to handle a double click of a stack entry. |
116 </p><dl> |
146 </p> |
|
147 <dl> |
|
148 |
117 <dt><i>itm</i></dt> |
149 <dt><i>itm</i></dt> |
118 <dd> |
150 <dd> |
119 reference to the double clicked item (QTreeWidgetItem) |
151 reference to the double clicked item (QTreeWidgetItem) |
120 </dd> |
152 </dd> |
121 </dl><a NAME="CallStackViewer.__openSource" ID="CallStackViewer.__openSource"></a> |
153 </dl> |
|
154 <a NAME="CallStackViewer.__openSource" ID="CallStackViewer.__openSource"></a> |
122 <h4>CallStackViewer.__openSource</h4> |
155 <h4>CallStackViewer.__openSource</h4> |
123 <b>__openSource</b>(<i></i>) |
156 <b>__openSource</b>(<i></i>) |
|
157 |
124 <p> |
158 <p> |
125 Private slot to show the source for the selected stack entry. |
159 Private slot to show the source for the selected stack entry. |
126 </p><a NAME="CallStackViewer.__saveStackTrace" ID="CallStackViewer.__saveStackTrace"></a> |
160 </p> |
|
161 <a NAME="CallStackViewer.__saveStackTrace" ID="CallStackViewer.__saveStackTrace"></a> |
127 <h4>CallStackViewer.__saveStackTrace</h4> |
162 <h4>CallStackViewer.__saveStackTrace</h4> |
128 <b>__saveStackTrace</b>(<i></i>) |
163 <b>__saveStackTrace</b>(<i></i>) |
|
164 |
129 <p> |
165 <p> |
130 Private slot to save the stack trace info to a file. |
166 Private slot to save the stack trace info to a file. |
131 </p><a NAME="CallStackViewer.__showCallStack" ID="CallStackViewer.__showCallStack"></a> |
167 </p> |
|
168 <a NAME="CallStackViewer.__showCallStack" ID="CallStackViewer.__showCallStack"></a> |
132 <h4>CallStackViewer.__showCallStack</h4> |
169 <h4>CallStackViewer.__showCallStack</h4> |
133 <b>__showCallStack</b>(<i>stack</i>) |
170 <b>__showCallStack</b>(<i>stack</i>) |
|
171 |
134 <p> |
172 <p> |
135 Private slot to show the call stack of the program being debugged. |
173 Private slot to show the call stack of the program being debugged. |
136 </p><dl> |
174 </p> |
|
175 <dl> |
|
176 |
137 <dt><i>stack</i></dt> |
177 <dt><i>stack</i></dt> |
138 <dd> |
178 <dd> |
139 list of tuples with call stack data (file name, |
179 list of tuples with call stack data (file name, |
140 line number, function name, formatted argument/values list) |
180 line number, function name, formatted argument/values list) |
141 </dd> |
181 </dd> |
142 </dl><a NAME="CallStackViewer.__showContextMenu" ID="CallStackViewer.__showContextMenu"></a> |
182 </dl> |
|
183 <a NAME="CallStackViewer.__showContextMenu" ID="CallStackViewer.__showContextMenu"></a> |
143 <h4>CallStackViewer.__showContextMenu</h4> |
184 <h4>CallStackViewer.__showContextMenu</h4> |
144 <b>__showContextMenu</b>(<i>coord</i>) |
185 <b>__showContextMenu</b>(<i>coord</i>) |
|
186 |
145 <p> |
187 <p> |
146 Private slot to show the context menu. |
188 Private slot to show the context menu. |
147 </p><dl> |
189 </p> |
|
190 <dl> |
|
191 |
148 <dt><i>coord</i></dt> |
192 <dt><i>coord</i></dt> |
149 <dd> |
193 <dd> |
150 the position of the mouse pointer (QPoint) |
194 the position of the mouse pointer (QPoint) |
151 </dd> |
195 </dd> |
152 </dl><a NAME="CallStackViewer.setDebugger" ID="CallStackViewer.setDebugger"></a> |
196 </dl> |
|
197 <a NAME="CallStackViewer.setDebugger" ID="CallStackViewer.setDebugger"></a> |
153 <h4>CallStackViewer.setDebugger</h4> |
198 <h4>CallStackViewer.setDebugger</h4> |
154 <b>setDebugger</b>(<i>debugUI</i>) |
199 <b>setDebugger</b>(<i>debugUI</i>) |
|
200 |
155 <p> |
201 <p> |
156 Public method to set a reference to the Debug UI. |
202 Public method to set a reference to the Debug UI. |
157 </p><dl> |
203 </p> |
|
204 <dl> |
|
205 |
158 <dt><i>debugUI</i></dt> |
206 <dt><i>debugUI</i></dt> |
159 <dd> |
207 <dd> |
160 reference to the DebugUI object (DebugUI) |
208 reference to the DebugUI object (DebugUI) |
161 </dd> |
209 </dd> |
162 </dl><a NAME="CallStackViewer.setProjectMode" ID="CallStackViewer.setProjectMode"></a> |
210 </dl> |
|
211 <a NAME="CallStackViewer.setProjectMode" ID="CallStackViewer.setProjectMode"></a> |
163 <h4>CallStackViewer.setProjectMode</h4> |
212 <h4>CallStackViewer.setProjectMode</h4> |
164 <b>setProjectMode</b>(<i>enabled</i>) |
213 <b>setProjectMode</b>(<i>enabled</i>) |
|
214 |
165 <p> |
215 <p> |
166 Public slot to set the call trace viewer to project mode. |
216 Public slot to set the call trace viewer to project mode. |
167 </p><p> |
217 </p> |
|
218 <p> |
168 In project mode the call trace info is shown with project relative |
219 In project mode the call trace info is shown with project relative |
169 path names. |
220 path names. |
170 </p><dl> |
221 </p> |
|
222 <dl> |
|
223 |
171 <dt><i>enabled</i></dt> |
224 <dt><i>enabled</i></dt> |
172 <dd> |
225 <dd> |
173 flag indicating to enable the project mode (boolean) |
226 flag indicating to enable the project mode (boolean) |
174 </dd> |
227 </dd> |
175 </dl> |
228 </dl> |