Documentation/Source/eric5.Debugger.CallStackViewer.html

changeset 2622
08cc2f31c983
child 3018
70924c0bdaf1
equal deleted inserted replaced
2621:ab5918079c38 2622:08cc2f31c983
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric5.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><a NAME="top" ID="top"></a>
22 <h1>eric5.Debugger.CallStackViewer</h1>
23 <p>
24 Module implementing the Call Stack viewer widget.
25 </p>
26 <h3>Global Attributes</h3>
27 <table>
28 <tr><td>None</td></tr>
29 </table>
30 <h3>Classes</h3>
31 <table>
32 <tr>
33 <td><a href="#CallStackViewer">CallStackViewer</a></td>
34 <td>Class implementing the Call Stack viewer widget.</td>
35 </tr>
36 </table>
37 <h3>Functions</h3>
38 <table>
39 <tr><td>None</td></tr>
40 </table>
41 <hr /><hr />
42 <a NAME="CallStackViewer" ID="CallStackViewer"></a>
43 <h2>CallStackViewer</h2>
44 <p>
45 Class implementing the Call Stack viewer widget.
46 </p><h3>Signals</h3>
47 <dl>
48 <dt>frameSelected(int)</dt>
49 <dd>
50 emitted to signal the selection of a frame entry
51 </dd><dt>sourceFile(str, int)</dt>
52 <dd>
53 emitted to show the source of a stack entry
54 </dd>
55 </dl>
56 <h3>Derived from</h3>
57 QTreeWidget
58 <h3>Class Attributes</h3>
59 <table>
60 <tr><td>FilenameRole</td></tr><tr><td>LinenoRole</td></tr>
61 </table>
62 <h3>Class Methods</h3>
63 <table>
64 <tr><td>None</td></tr>
65 </table>
66 <h3>Methods</h3>
67 <table>
68 <tr>
69 <td><a href="#CallStackViewer.__init__">CallStackViewer</a></td>
70 <td>Constructor</td>
71 </tr><tr>
72 <td><a href="#CallStackViewer.__itemDoubleClicked">__itemDoubleClicked</a></td>
73 <td>Private slot to handle a double click of a stack entry.</td>
74 </tr><tr>
75 <td><a href="#CallStackViewer.__openSource">__openSource</a></td>
76 <td>Private slot to show the source for the selected stack entry.</td>
77 </tr><tr>
78 <td><a href="#CallStackViewer.__saveStackTrace">__saveStackTrace</a></td>
79 <td>Private slot to save the stack trace info to a file.</td>
80 </tr><tr>
81 <td><a href="#CallStackViewer.__showCallStack">__showCallStack</a></td>
82 <td>Public slot to show the call stack of the program being debugged.</td>
83 </tr><tr>
84 <td><a href="#CallStackViewer.__showContextMenu">__showContextMenu</a></td>
85 <td>Private slot to show the context menu.</td>
86 </tr><tr>
87 <td><a href="#CallStackViewer.setDebugger">setDebugger</a></td>
88 <td>Public method to set a reference to the Debug UI.</td>
89 </tr><tr>
90 <td><a href="#CallStackViewer.setProjectMode">setProjectMode</a></td>
91 <td>Public slot to set the call trace viewer to project mode.</td>
92 </tr>
93 </table>
94 <h3>Static Methods</h3>
95 <table>
96 <tr><td>None</td></tr>
97 </table>
98 <a NAME="CallStackViewer.__init__" ID="CallStackViewer.__init__"></a>
99 <h4>CallStackViewer (Constructor)</h4>
100 <b>CallStackViewer</b>(<i>debugServer, parent=None</i>)
101 <p>
102 Constructor
103 </p><dl>
104 <dt><i>debugServer</i></dt>
105 <dd>
106 reference to the debug server object (DebugServer)
107 </dd><dt><i>parent</i></dt>
108 <dd>
109 reference to the parent widget (QWidget)
110 </dd>
111 </dl><a NAME="CallStackViewer.__itemDoubleClicked" ID="CallStackViewer.__itemDoubleClicked"></a>
112 <h4>CallStackViewer.__itemDoubleClicked</h4>
113 <b>__itemDoubleClicked</b>(<i>itm</i>)
114 <p>
115 Private slot to handle a double click of a stack entry.
116 </p><dl>
117 <dt><i>itm</i></dt>
118 <dd>
119 reference to the double clicked item (QTreeWidgetItem)
120 </dd>
121 </dl><a NAME="CallStackViewer.__openSource" ID="CallStackViewer.__openSource"></a>
122 <h4>CallStackViewer.__openSource</h4>
123 <b>__openSource</b>(<i></i>)
124 <p>
125 Private slot to show the source for the selected stack entry.
126 </p><a NAME="CallStackViewer.__saveStackTrace" ID="CallStackViewer.__saveStackTrace"></a>
127 <h4>CallStackViewer.__saveStackTrace</h4>
128 <b>__saveStackTrace</b>(<i></i>)
129 <p>
130 Private slot to save the stack trace info to a file.
131 </p><a NAME="CallStackViewer.__showCallStack" ID="CallStackViewer.__showCallStack"></a>
132 <h4>CallStackViewer.__showCallStack</h4>
133 <b>__showCallStack</b>(<i>stack</i>)
134 <p>
135 Public slot to show the call stack of the program being debugged.
136 </p><dl>
137 <dt><i>stack</i></dt>
138 <dd>
139 list of tuples with call stack data (file name, line number,
140 function name, formatted argument/values list)
141 </dd>
142 </dl><a NAME="CallStackViewer.__showContextMenu" ID="CallStackViewer.__showContextMenu"></a>
143 <h4>CallStackViewer.__showContextMenu</h4>
144 <b>__showContextMenu</b>(<i>coord</i>)
145 <p>
146 Private slot to show the context menu.
147 </p><dl>
148 <dt><i>coord</i></dt>
149 <dd>
150 the position of the mouse pointer (QPoint)
151 </dd>
152 </dl><a NAME="CallStackViewer.setDebugger" ID="CallStackViewer.setDebugger"></a>
153 <h4>CallStackViewer.setDebugger</h4>
154 <b>setDebugger</b>(<i>debugUI</i>)
155 <p>
156 Public method to set a reference to the Debug UI.
157 </p><dl>
158 <dt><i>debugUI</i></dt>
159 <dd>
160 reference to the DebugUI object (DebugUI)
161 </dd>
162 </dl><a NAME="CallStackViewer.setProjectMode" ID="CallStackViewer.setProjectMode"></a>
163 <h4>CallStackViewer.setProjectMode</h4>
164 <b>setProjectMode</b>(<i>enabled</i>)
165 <p>
166 Public slot to set the call trace viewer to project mode.
167 </p><p>
168 In project mode the call trace info is shown with project relative
169 path names.
170 </p><dl>
171 <dt><i>enabled</i></dt>
172 <dd>
173 flag indicating to enable the project mode (boolean)
174 </dd>
175 </dl>
176 <div align="right"><a href="#top">Up</a></div>
177 <hr />
178 </body></html>

eric ide

mercurial