58 </table> |
58 </table> |
59 <h3>Methods</h3> |
59 <h3>Methods</h3> |
60 <table> |
60 <table> |
61 <tr> |
61 <tr> |
62 <td><a href="#DebugThread.__init__">DebugThread</a></td> |
62 <td><a href="#DebugThread.__init__">DebugThread</a></td> |
63 <td>Constructor</td> |
63 <td>Constructor</td> |
64 </tr><tr> |
64 </tr><tr> |
65 <td><a href="#DebugThread.bootstrap">bootstrap</a></td> |
65 <td><a href="#DebugThread.bootstrap">bootstrap</a></td> |
66 <td>Private method to bootstrap the thread.</td> |
66 <td>Private method to bootstrap the thread.</td> |
67 </tr><tr> |
67 </tr><tr> |
68 <td><a href="#DebugThread.get_ident">get_ident</a></td> |
68 <td><a href="#DebugThread.get_ident">get_ident</a></td> |
69 <td>Public method to return the id of this thread.</td> |
69 <td>Public method to return the id of this thread.</td> |
70 </tr><tr> |
70 </tr><tr> |
71 <td><a href="#DebugThread.get_name">get_name</a></td> |
71 <td><a href="#DebugThread.get_name">get_name</a></td> |
72 <td>Public method to return the name of this thread.</td> |
72 <td>Public method to return the name of this thread.</td> |
73 </tr><tr> |
73 </tr><tr> |
74 <td><a href="#DebugThread.set_ident">set_ident</a></td> |
74 <td><a href="#DebugThread.set_ident">set_ident</a></td> |
75 <td>Public method to set the id for this thread.</td> |
75 <td>Public method to set the id for this thread.</td> |
76 </tr><tr> |
76 </tr><tr> |
77 <td><a href="#DebugThread.traceThread">traceThread</a></td> |
77 <td><a href="#DebugThread.traceThread">traceThread</a></td> |
78 <td>Private method to setup tracing for this thread.</td> |
78 <td>Private method to setup tracing for this thread.</td> |
79 </tr><tr> |
79 </tr><tr> |
80 <td><a href="#DebugThread.trace_dispatch">trace_dispatch</a></td> |
80 <td><a href="#DebugThread.trace_dispatch">trace_dispatch</a></td> |
81 <td>Private method wrapping the trace_dispatch of bdb.py.</td> |
81 <td>Private method wrapping the trace_dispatch of bdb.py.</td> |
82 </tr> |
82 </tr> |
83 </table> |
83 </table> |
84 <a NAME="DebugThread.__init__" ID="DebugThread.__init__"></a> |
84 <a NAME="DebugThread.__init__" ID="DebugThread.__init__"></a> |
85 <h4>DebugThread (Constructor)</h4> |
85 <h4>DebugThread (Constructor)</h4> |
86 <b>DebugThread</b>(<i>dbgClient, targ = None, args = None, kwargs = None, mainThread = False</i>) |
86 <b>DebugThread</b>(<i>dbgClient, targ = None, args = None, kwargs = None, mainThread = False</i>) |
87 <p> |
87 <p> |
88 Constructor |
88 Constructor |
89 </p><dl> |
89 </p><dl> |
90 <dt><i>dbgClient</i></dt> |
90 <dt><i>dbgClient</i></dt> |
91 <dd> |
91 <dd> |
92 the owning client |
92 the owning client |
93 </dd><dt><i>targ</i></dt> |
93 </dd><dt><i>targ</i></dt> |
94 <dd> |
94 <dd> |
95 the target method in the run thread |
95 the target method in the run thread |
96 </dd><dt><i>args</i></dt> |
96 </dd><dt><i>args</i></dt> |
97 <dd> |
97 <dd> |
98 arguments to be passed to the thread |
98 arguments to be passed to the thread |
99 </dd><dt><i>kwargs</i></dt> |
99 </dd><dt><i>kwargs</i></dt> |
100 <dd> |
100 <dd> |
101 arguments to be passed to the thread |
101 arguments to be passed to the thread |
102 </dd><dt><i>mainThread</i></dt> |
102 </dd><dt><i>mainThread</i></dt> |
103 <dd> |
103 <dd> |
104 0 if this thread is not the mainscripts thread |
104 0 if this thread is not the mainscripts thread |
105 </dd> |
105 </dd> |
106 </dl><a NAME="DebugThread.bootstrap" ID="DebugThread.bootstrap"></a> |
106 </dl><a NAME="DebugThread.bootstrap" ID="DebugThread.bootstrap"></a> |
107 <h4>DebugThread.bootstrap</h4> |
107 <h4>DebugThread.bootstrap</h4> |
108 <b>bootstrap</b>(<i></i>) |
108 <b>bootstrap</b>(<i></i>) |
109 <p> |
109 <p> |
110 Private method to bootstrap the thread. |
110 Private method to bootstrap the thread. |
111 </p><p> |
111 </p><p> |
112 It wraps the call to the user function to enable tracing |
112 It wraps the call to the user function to enable tracing |
113 before hand. |
113 before hand. |
114 </p><a NAME="DebugThread.get_ident" ID="DebugThread.get_ident"></a> |
114 </p><a NAME="DebugThread.get_ident" ID="DebugThread.get_ident"></a> |
115 <h4>DebugThread.get_ident</h4> |
115 <h4>DebugThread.get_ident</h4> |
116 <b>get_ident</b>(<i></i>) |
116 <b>get_ident</b>(<i></i>) |
117 <p> |
117 <p> |
118 Public method to return the id of this thread. |
118 Public method to return the id of this thread. |
119 </p><dl> |
119 </p><dl> |
120 <dt>Returns:</dt> |
120 <dt>Returns:</dt> |
121 <dd> |
121 <dd> |
122 the id of this thread (int) |
122 the id of this thread (int) |
123 </dd> |
123 </dd> |
124 </dl><a NAME="DebugThread.get_name" ID="DebugThread.get_name"></a> |
124 </dl><a NAME="DebugThread.get_name" ID="DebugThread.get_name"></a> |
125 <h4>DebugThread.get_name</h4> |
125 <h4>DebugThread.get_name</h4> |
126 <b>get_name</b>(<i></i>) |
126 <b>get_name</b>(<i></i>) |
127 <p> |
127 <p> |
128 Public method to return the name of this thread. |
128 Public method to return the name of this thread. |
129 </p><dl> |
129 </p><dl> |
130 <dt>Returns:</dt> |
130 <dt>Returns:</dt> |
131 <dd> |
131 <dd> |
132 name of this thread (string) |
132 name of this thread (string) |
133 </dd> |
133 </dd> |
134 </dl><a NAME="DebugThread.set_ident" ID="DebugThread.set_ident"></a> |
134 </dl><a NAME="DebugThread.set_ident" ID="DebugThread.set_ident"></a> |
135 <h4>DebugThread.set_ident</h4> |
135 <h4>DebugThread.set_ident</h4> |
136 <b>set_ident</b>(<i>id</i>) |
136 <b>set_ident</b>(<i>id</i>) |
137 <p> |
137 <p> |
138 Public method to set the id for this thread. |
138 Public method to set the id for this thread. |
139 </p><dl> |
139 </p><dl> |
140 <dt><i>id</i></dt> |
140 <dt><i>id</i></dt> |
141 <dd> |
141 <dd> |
142 id for this thread (int) |
142 id for this thread (int) |
143 </dd> |
143 </dd> |
144 </dl><a NAME="DebugThread.traceThread" ID="DebugThread.traceThread"></a> |
144 </dl><a NAME="DebugThread.traceThread" ID="DebugThread.traceThread"></a> |
145 <h4>DebugThread.traceThread</h4> |
145 <h4>DebugThread.traceThread</h4> |
146 <b>traceThread</b>(<i></i>) |
146 <b>traceThread</b>(<i></i>) |
147 <p> |
147 <p> |
148 Private method to setup tracing for this thread. |
148 Private method to setup tracing for this thread. |
149 </p><a NAME="DebugThread.trace_dispatch" ID="DebugThread.trace_dispatch"></a> |
149 </p><a NAME="DebugThread.trace_dispatch" ID="DebugThread.trace_dispatch"></a> |
150 <h4>DebugThread.trace_dispatch</h4> |
150 <h4>DebugThread.trace_dispatch</h4> |
151 <b>trace_dispatch</b>(<i>frame, event, arg</i>) |
151 <b>trace_dispatch</b>(<i>frame, event, arg</i>) |
152 <p> |
152 <p> |
153 Private method wrapping the trace_dispatch of bdb.py. |
153 Private method wrapping the trace_dispatch of bdb.py. |
154 </p><p> |
154 </p><p> |
155 It wraps the call to dispatch tracing into |
155 It wraps the call to dispatch tracing into |
156 bdb to make sure we have locked the client to prevent multiple |
156 bdb to make sure we have locked the client to prevent multiple |
157 threads from entering the client event loop. |
157 threads from entering the client event loop. |
158 </p><dl> |
158 </p><dl> |
159 <dt><i>frame</i></dt> |
159 <dt><i>frame</i></dt> |
160 <dd> |
160 <dd> |
161 The current stack frame. |
161 The current stack frame. |
162 </dd><dt><i>event</i></dt> |
162 </dd><dt><i>event</i></dt> |
163 <dd> |
163 <dd> |
164 The trace event (string) |
164 The trace event (string) |
165 </dd><dt><i>arg</i></dt> |
165 </dd><dt><i>arg</i></dt> |
166 <dd> |
166 <dd> |
167 The arguments |
167 The arguments |
168 </dd> |
168 </dd> |
169 </dl><dl> |
169 </dl><dl> |
170 <dt>Returns:</dt> |
170 <dt>Returns:</dt> |
171 <dd> |
171 <dd> |
172 local trace function |
172 local trace function |
173 </dd> |
173 </dd> |
174 </dl> |
174 </dl> |
175 <div align="right"><a href="#top">Up</a></div> |
175 <div align="right"><a href="#top">Up</a></div> |
176 <hr /> |
176 <hr /> |
177 </body></html> |
177 </body></html> |