12 |
12 |
13 ClientDefaultCapabilities = 0 |
13 ClientDefaultCapabilities = 0 |
14 |
14 |
15 ClientTypeAssociations = [] |
15 ClientTypeAssociations = [] |
16 |
16 |
|
17 |
17 def getRegistryData(): |
18 def getRegistryData(): |
18 """ |
19 """ |
19 Module functionto get characterising data for the debugger interface. |
20 Module functionto get characterising data for the debugger interface. |
20 |
21 |
21 @return list of the following data. Client type (string), client |
22 @return list of the following data. Client type (string), client |
22 capabilities (integer), client type association (list of strings) |
23 capabilities (integer), client type association (list of strings) |
23 """ |
24 """ |
24 return ["None", ClientDefaultCapabilities, ClientTypeAssociations] |
25 return ["None", ClientDefaultCapabilities, ClientTypeAssociations] |
|
26 |
25 |
27 |
26 class DebuggerInterfaceNone(QObject): |
28 class DebuggerInterfaceNone(QObject): |
27 """ |
29 """ |
28 Class implementing a dummy debugger interface for the debug server. |
30 Class implementing a dummy debugger interface for the debug server. |
29 """ |
31 """ |
47 def startRemote(self, port, runInConsole): |
49 def startRemote(self, port, runInConsole): |
48 """ |
50 """ |
49 Public method to start a remote Python interpreter. |
51 Public method to start a remote Python interpreter. |
50 |
52 |
51 @param port portnumber the debug server is listening on (integer) |
53 @param port portnumber the debug server is listening on (integer) |
52 @param runInConsole flag indicating to start the debugger in a |
54 @param runInConsole flag indicating to start the debugger in a |
53 console window (boolean) |
55 console window (boolean) |
54 @return client process object (QProcess) and a flag to indicate |
56 @return client process object (QProcess) and a flag to indicate |
55 a network connection (boolean) |
57 a network connection (boolean) |
56 """ |
58 """ |
57 return None, True |
59 return None, True |
59 def startRemoteForProject(self, port, runInConsole): |
61 def startRemoteForProject(self, port, runInConsole): |
60 """ |
62 """ |
61 Public method to start a remote Python interpreter for a project. |
63 Public method to start a remote Python interpreter for a project. |
62 |
64 |
63 @param port portnumber the debug server is listening on (integer) |
65 @param port portnumber the debug server is listening on (integer) |
64 @param runInConsole flag indicating to start the debugger in a |
66 @param runInConsole flag indicating to start the debugger in a |
65 console window (boolean) |
67 console window (boolean) |
66 @return client process object (QProcess) and a flag to indicate |
68 @return client process object (QProcess) and a flag to indicate |
67 a network connection (boolean) |
69 a network connection (boolean) |
68 """ |
70 """ |
69 return None, True |
71 return None, True |
115 |
117 |
116 @param env environment settings (dictionary) |
118 @param env environment settings (dictionary) |
117 """ |
119 """ |
118 return |
120 return |
119 |
121 |
120 def remoteLoad(self, fn, argv, wd, traceInterpreter = False, autoContinue = True, |
122 def remoteLoad(self, fn, argv, wd, traceInterpreter=False, autoContinue=True, |
121 autoFork = False, forkChild = False): |
123 autoFork=False, forkChild=False): |
122 """ |
124 """ |
123 Public method to load a new program to debug. |
125 Public method to load a new program to debug. |
124 |
126 |
125 @param fn the filename to debug (string) |
127 @param fn the filename to debug (string) |
126 @param argv the commandline arguments to pass to the program (string) |
128 @param argv the commandline arguments to pass to the program (string) |
132 @keyparam autoFork flag indicating the automatic fork mode (boolean) |
134 @keyparam autoFork flag indicating the automatic fork mode (boolean) |
133 @keyparam forkChild flag indicating to debug the child after forking (boolean) |
135 @keyparam forkChild flag indicating to debug the child after forking (boolean) |
134 """ |
136 """ |
135 return |
137 return |
136 |
138 |
137 def remoteRun(self, fn, argv, wd, autoFork = False, forkChild = False): |
139 def remoteRun(self, fn, argv, wd, autoFork=False, forkChild=False): |
138 """ |
140 """ |
139 Public method to load a new program to run. |
141 Public method to load a new program to run. |
140 |
142 |
141 @param fn the filename to run (string) |
143 @param fn the filename to run (string) |
142 @param argv the commandline arguments to pass to the program (string) |
144 @param argv the commandline arguments to pass to the program (string) |
144 @keyparam autoFork flag indicating the automatic fork mode (boolean) |
146 @keyparam autoFork flag indicating the automatic fork mode (boolean) |
145 @keyparam forkChild flag indicating to debug the child after forking (boolean) |
147 @keyparam forkChild flag indicating to debug the child after forking (boolean) |
146 """ |
148 """ |
147 return |
149 return |
148 |
150 |
149 def remoteCoverage(self, fn, argv, wd, erase = False): |
151 def remoteCoverage(self, fn, argv, wd, erase=False): |
150 """ |
152 """ |
151 Public method to load a new program to collect coverage data. |
153 Public method to load a new program to collect coverage data. |
152 |
154 |
153 @param fn the filename to run (string) |
155 @param fn the filename to run (string) |
154 @param argv the commandline arguments to pass to the program (string) |
156 @param argv the commandline arguments to pass to the program (string) |
155 @param wd the working directory for the program (string) |
157 @param wd the working directory for the program (string) |
156 @keyparam erase flag indicating that coverage info should be |
158 @keyparam erase flag indicating that coverage info should be |
157 cleared first (boolean) |
159 cleared first (boolean) |
158 """ |
160 """ |
159 return |
161 return |
160 |
162 |
161 def remoteProfile(self, fn, argv, wd, erase = False): |
163 def remoteProfile(self, fn, argv, wd, erase=False): |
162 """ |
164 """ |
163 Public method to load a new program to collect profiling data. |
165 Public method to load a new program to collect profiling data. |
164 |
166 |
165 @param fn the filename to run (string) |
167 @param fn the filename to run (string) |
166 @param argv the commandline arguments to pass to the program (string) |
168 @param argv the commandline arguments to pass to the program (string) |
169 """ |
171 """ |
170 return |
172 return |
171 |
173 |
172 def remoteStatement(self, stmt): |
174 def remoteStatement(self, stmt): |
173 """ |
175 """ |
174 Public method to execute a Python statement. |
176 Public method to execute a Python statement. |
175 |
177 |
176 @param stmt the Python statement to execute (string). It |
178 @param stmt the Python statement to execute (string). It |
177 should not have a trailing newline. |
179 should not have a trailing newline. |
178 """ |
180 """ |
179 self.debugServer.signalClientStatement(False) |
181 self.debugServer.signalClientStatement(False) |
201 """ |
203 """ |
202 Public method to stop the debugged program. |
204 Public method to stop the debugged program. |
203 """ |
205 """ |
204 return |
206 return |
205 |
207 |
206 def remoteContinue(self, special = False): |
208 def remoteContinue(self, special=False): |
207 """ |
209 """ |
208 Public method to continue the debugged program. |
210 Public method to continue the debugged program. |
209 |
211 |
210 @param special flag indicating a special continue operation |
212 @param special flag indicating a special continue operation |
211 """ |
213 """ |
212 return |
214 return |
213 |
215 |
214 def remoteBreakpoint(self, fn, line, set, cond = None, temp = False): |
216 def remoteBreakpoint(self, fn, line, set, cond=None, temp=False): |
215 """ |
217 """ |
216 Public method to set or clear a breakpoint. |
218 Public method to set or clear a breakpoint. |
217 |
219 |
218 @param fn filename the breakpoint belongs to (string) |
220 @param fn filename the breakpoint belongs to (string) |
219 @param line linenumber of the breakpoint (int) |
221 @param line linenumber of the breakpoint (int) |
241 @param line linenumber of the breakpoint (int) |
243 @param line linenumber of the breakpoint (int) |
242 @param count number of occurrences to ignore (int) |
244 @param count number of occurrences to ignore (int) |
243 """ |
245 """ |
244 return |
246 return |
245 |
247 |
246 def remoteWatchpoint(self, cond, set, temp = False): |
248 def remoteWatchpoint(self, cond, set, temp=False): |
247 """ |
249 """ |
248 Public method to set or clear a watch expression. |
250 Public method to set or clear a watch expression. |
249 |
251 |
250 @param cond expression of the watch expression (string) |
252 @param cond expression of the watch expression (string) |
251 @param set flag indicating setting or resetting a watch expression (boolean) |
253 @param set flag indicating setting or resetting a watch expression (boolean) |
269 @param cond expression of the watch expression (string) |
271 @param cond expression of the watch expression (string) |
270 @param count number of occurrences to ignore (int) |
272 @param count number of occurrences to ignore (int) |
271 """ |
273 """ |
272 return |
274 return |
273 |
275 |
274 def remoteRawInput(self,s): |
276 def remoteRawInput(self, s): |
275 """ |
277 """ |
276 Public method to send the raw input to the debugged program. |
278 Public method to send the raw input to the debugged program. |
277 |
279 |
278 @param s the raw input (string) |
280 @param s the raw input (string) |
279 """ |
281 """ |
291 |
293 |
292 @param tid id of the thread (integer) |
294 @param tid id of the thread (integer) |
293 """ |
295 """ |
294 return |
296 return |
295 |
297 |
296 def remoteClientVariables(self, scope, filter, framenr = 0): |
298 def remoteClientVariables(self, scope, filter, framenr=0): |
297 """ |
299 """ |
298 Public method to request the variables of the debugged program. |
300 Public method to request the variables of the debugged program. |
299 |
301 |
300 @param scope the scope of the variables (0 = local, 1 = global) |
302 @param scope the scope of the variables (0 = local, 1 = global) |
301 @param filter list of variable types to filter out (list of int) |
303 @param filter list of variable types to filter out (list of int) |
302 @param framenr framenumber of the variables to retrieve (int) |
304 @param framenr framenumber of the variables to retrieve (int) |
303 """ |
305 """ |
304 return |
306 return |
305 |
307 |
306 def remoteClientVariable(self, scope, filter, var, framenr = 0): |
308 def remoteClientVariable(self, scope, filter, var, framenr=0): |
307 """ |
309 """ |
308 Public method to request the variables of the debugged program. |
310 Public method to request the variables of the debugged program. |
309 |
311 |
310 @param scope the scope of the variables (0 = local, 1 = global) |
312 @param scope the scope of the variables (0 = local, 1 = global) |
311 @param filter list of variable types to filter out (list of int) |
313 @param filter list of variable types to filter out (list of int) |