Documentation/Source/eric6.Debugger.DebuggerInterfacePython3.html

changeset 5144
1ab536d25072
parent 4553
a6b2acd1a355
child 5606
da305d172769
equal deleted inserted replaced
5141:bc64243b7672 5144:1ab536d25072
29 </table> 29 </table>
30 <h3>Classes</h3> 30 <h3>Classes</h3>
31 <table> 31 <table>
32 <tr> 32 <tr>
33 <td><a href="#DebuggerInterfacePython3">DebuggerInterfacePython3</a></td> 33 <td><a href="#DebuggerInterfacePython3">DebuggerInterfacePython3</a></td>
34 <td>Class implementing the Python debugger interface for the debug server.</td> 34 <td>Class implementing the Python 3 debugger interface for the debug server.</td>
35 </tr> 35 </tr>
36 </table> 36 </table>
37 <h3>Functions</h3> 37 <h3>Functions</h3>
38 <table> 38 <table>
39 <tr> 39 <tr>
46 </table> 46 </table>
47 <hr /><hr /> 47 <hr /><hr />
48 <a NAME="DebuggerInterfacePython3" ID="DebuggerInterfacePython3"></a> 48 <a NAME="DebuggerInterfacePython3" ID="DebuggerInterfacePython3"></a>
49 <h2>DebuggerInterfacePython3</h2> 49 <h2>DebuggerInterfacePython3</h2>
50 <p> 50 <p>
51 Class implementing the Python debugger interface for the debug server. 51 Class implementing the Python 3 debugger interface for the debug server.
52 </p> 52 </p>
53 <h3>Derived from</h3> 53 <h3>Derived from</h3>
54 QObject 54 QObject
55 <h3>Class Attributes</h3> 55 <h3>Class Attributes</h3>
56 <table> 56 <table>
67 <td>Constructor</td> 67 <td>Constructor</td>
68 </tr><tr> 68 </tr><tr>
69 <td><a href="#DebuggerInterfacePython3.__askForkTo">__askForkTo</a></td> 69 <td><a href="#DebuggerInterfacePython3.__askForkTo">__askForkTo</a></td>
70 <td>Private method to ask the user which branch of a fork to follow.</td> 70 <td>Private method to ask the user which branch of a fork to follow.</td>
71 </tr><tr> 71 </tr><tr>
72 <td><a href="#DebuggerInterfacePython3.__handleJsonCommand">__handleJsonCommand</a></td>
73 <td>Private method to handle a command or response serialized as a JSON string.</td>
74 </tr><tr>
72 <td><a href="#DebuggerInterfacePython3.__identityTranslation">__identityTranslation</a></td> 75 <td><a href="#DebuggerInterfacePython3.__identityTranslation">__identityTranslation</a></td>
73 <td>Private method to perform the identity path translation.</td> 76 <td>Private method to perform the identity path translation.</td>
74 </tr><tr> 77 </tr><tr>
75 <td><a href="#DebuggerInterfacePython3.__parseClientLine">__parseClientLine</a></td> 78 <td><a href="#DebuggerInterfacePython3.__parseClientLine">__parseClientLine</a></td>
76 <td>Private method to handle data from the client.</td> 79 <td>Private method to handle data from the client.</td>
77 </tr><tr> 80 </tr><tr>
78 <td><a href="#DebuggerInterfacePython3.__remoteTranslation">__remoteTranslation</a></td> 81 <td><a href="#DebuggerInterfacePython3.__remoteTranslation">__remoteTranslation</a></td>
79 <td>Private method to perform the path translation.</td> 82 <td>Private method to perform the path translation.</td>
80 </tr><tr> 83 </tr><tr>
81 <td><a href="#DebuggerInterfacePython3.__sendCommand">__sendCommand</a></td> 84 <td><a href="#DebuggerInterfacePython3.__sendJsonCommand">__sendJsonCommand</a></td>
82 <td>Private method to send a single line command to the client.</td> 85 <td>Private method to send a single command to the client.</td>
83 </tr><tr> 86 </tr><tr>
84 <td><a href="#DebuggerInterfacePython3.__startProcess">__startProcess</a></td> 87 <td><a href="#DebuggerInterfacePython3.__startProcess">__startProcess</a></td>
85 <td>Private method to start the debugger client process.</td> 88 <td>Private method to start the debugger client process.</td>
86 </tr><tr> 89 </tr><tr>
87 <td><a href="#DebuggerInterfacePython3.flush">flush</a></td> 90 <td><a href="#DebuggerInterfacePython3.flush">flush</a></td>
129 <td><a href="#DebuggerInterfacePython3.remoteCoverage">remoteCoverage</a></td> 132 <td><a href="#DebuggerInterfacePython3.remoteCoverage">remoteCoverage</a></td>
130 <td>Public method to load a new program to collect coverage data.</td> 133 <td>Public method to load a new program to collect coverage data.</td>
131 </tr><tr> 134 </tr><tr>
132 <td><a href="#DebuggerInterfacePython3.remoteEnvironment">remoteEnvironment</a></td> 135 <td><a href="#DebuggerInterfacePython3.remoteEnvironment">remoteEnvironment</a></td>
133 <td>Public method to set the environment for a program to debug, run, ...</td> 136 <td>Public method to set the environment for a program to debug, run, ...</td>
134 </tr><tr>
135 <td><a href="#DebuggerInterfacePython3.remoteEval">remoteEval</a></td>
136 <td>Public method to evaluate arg in the current context of the debugged program.</td>
137 </tr><tr>
138 <td><a href="#DebuggerInterfacePython3.remoteExec">remoteExec</a></td>
139 <td>Public method to execute stmt in the current context of the debugged program.</td>
140 </tr><tr> 137 </tr><tr>
141 <td><a href="#DebuggerInterfacePython3.remoteLoad">remoteLoad</a></td> 138 <td><a href="#DebuggerInterfacePython3.remoteLoad">remoteLoad</a></td>
142 <td>Public method to load a new program to debug.</td> 139 <td>Public method to load a new program to debug.</td>
143 </tr><tr> 140 </tr><tr>
144 <td><a href="#DebuggerInterfacePython3.remoteProfile">remoteProfile</a></td> 141 <td><a href="#DebuggerInterfacePython3.remoteProfile">remoteProfile</a></td>
222 </dl><a NAME="DebuggerInterfacePython3.__askForkTo" ID="DebuggerInterfacePython3.__askForkTo"></a> 219 </dl><a NAME="DebuggerInterfacePython3.__askForkTo" ID="DebuggerInterfacePython3.__askForkTo"></a>
223 <h4>DebuggerInterfacePython3.__askForkTo</h4> 220 <h4>DebuggerInterfacePython3.__askForkTo</h4>
224 <b>__askForkTo</b>(<i></i>) 221 <b>__askForkTo</b>(<i></i>)
225 <p> 222 <p>
226 Private method to ask the user which branch of a fork to follow. 223 Private method to ask the user which branch of a fork to follow.
227 </p><a NAME="DebuggerInterfacePython3.__identityTranslation" ID="DebuggerInterfacePython3.__identityTranslation"></a> 224 </p><a NAME="DebuggerInterfacePython3.__handleJsonCommand" ID="DebuggerInterfacePython3.__handleJsonCommand"></a>
225 <h4>DebuggerInterfacePython3.__handleJsonCommand</h4>
226 <b>__handleJsonCommand</b>(<i>jsonStr</i>)
227 <p>
228 Private method to handle a command or response serialized as a
229 JSON string.
230 </p><dl>
231 <dt><i>jsonStr</i> (str)</dt>
232 <dd>
233 string containing the command or response received
234 from the debug backend
235 </dd>
236 </dl><a NAME="DebuggerInterfacePython3.__identityTranslation" ID="DebuggerInterfacePython3.__identityTranslation"></a>
228 <h4>DebuggerInterfacePython3.__identityTranslation</h4> 237 <h4>DebuggerInterfacePython3.__identityTranslation</h4>
229 <b>__identityTranslation</b>(<i>fn, remote2local=True</i>) 238 <b>__identityTranslation</b>(<i>fn, remote2local=True</i>)
230 <p> 239 <p>
231 Private method to perform the identity path translation. 240 Private method to perform the identity path translation.
232 </p><dl> 241 </p><dl>
265 </dl><dl> 274 </dl><dl>
266 <dt>Returns:</dt> 275 <dt>Returns:</dt>
267 <dd> 276 <dd>
268 translated filename (string) 277 translated filename (string)
269 </dd> 278 </dd>
270 </dl><a NAME="DebuggerInterfacePython3.__sendCommand" ID="DebuggerInterfacePython3.__sendCommand"></a> 279 </dl><a NAME="DebuggerInterfacePython3.__sendJsonCommand" ID="DebuggerInterfacePython3.__sendJsonCommand"></a>
271 <h4>DebuggerInterfacePython3.__sendCommand</h4> 280 <h4>DebuggerInterfacePython3.__sendJsonCommand</h4>
272 <b>__sendCommand</b>(<i>cmd</i>) 281 <b>__sendJsonCommand</b>(<i>command, params</i>)
273 <p> 282 <p>
274 Private method to send a single line command to the client. 283 Private method to send a single command to the client.
275 </p><dl> 284 </p><dl>
276 <dt><i>cmd</i></dt> 285 <dt><i>command</i> (str)</dt>
277 <dd> 286 <dd>
278 command to send to the debug client (string) 287 command name to be sent
288 </dd><dt><i>params</i> (dict)</dt>
289 <dd>
290 dictionary of named parameters for the command
279 </dd> 291 </dd>
280 </dl><a NAME="DebuggerInterfacePython3.__startProcess" ID="DebuggerInterfacePython3.__startProcess"></a> 292 </dl><a NAME="DebuggerInterfacePython3.__startProcess" ID="DebuggerInterfacePython3.__startProcess"></a>
281 <h4>DebuggerInterfacePython3.__startProcess</h4> 293 <h4>DebuggerInterfacePython3.__startProcess</h4>
282 <b>__startProcess</b>(<i>program, arguments, environment=None</i>) 294 <b>__startProcess</b>(<i>program, arguments, environment=None</i>)
283 <p> 295 <p>
344 <b>remoteBanner</b>(<i></i>) 356 <b>remoteBanner</b>(<i></i>)
345 <p> 357 <p>
346 Public slot to get the banner info of the remote client. 358 Public slot to get the banner info of the remote client.
347 </p><a NAME="DebuggerInterfacePython3.remoteBreakpoint" ID="DebuggerInterfacePython3.remoteBreakpoint"></a> 359 </p><a NAME="DebuggerInterfacePython3.remoteBreakpoint" ID="DebuggerInterfacePython3.remoteBreakpoint"></a>
348 <h4>DebuggerInterfacePython3.remoteBreakpoint</h4> 360 <h4>DebuggerInterfacePython3.remoteBreakpoint</h4>
349 <b>remoteBreakpoint</b>(<i>fn, line, set, cond=None, temp=False</i>) 361 <b>remoteBreakpoint</b>(<i>fn, line, setBreakpoint, cond=None, temp=False</i>)
350 <p> 362 <p>
351 Public method to set or clear a breakpoint. 363 Public method to set or clear a breakpoint.
352 </p><dl> 364 </p><dl>
353 <dt><i>fn</i></dt> 365 <dt><i>fn</i></dt>
354 <dd> 366 <dd>
355 filename the breakpoint belongs to (string) 367 filename the breakpoint belongs to (string)
356 </dd><dt><i>line</i></dt> 368 </dd><dt><i>line</i></dt>
357 <dd> 369 <dd>
358 linenumber of the breakpoint (int) 370 linenumber of the breakpoint (int)
359 </dd><dt><i>set</i></dt> 371 </dd><dt><i>setBreakpoint</i></dt>
360 <dd> 372 <dd>
361 flag indicating setting or resetting a breakpoint (boolean) 373 flag indicating setting or resetting a
374 breakpoint (boolean)
362 </dd><dt><i>cond</i></dt> 375 </dd><dt><i>cond</i></dt>
363 <dd> 376 <dd>
364 condition of the breakpoint (string) 377 condition of the breakpoint (string)
365 </dd><dt><i>temp</i></dt> 378 </dd><dt><i>temp</i></dt>
366 <dd> 379 <dd>
501 </p><dl> 514 </p><dl>
502 <dt><i>env</i></dt> 515 <dt><i>env</i></dt>
503 <dd> 516 <dd>
504 environment settings (dictionary) 517 environment settings (dictionary)
505 </dd> 518 </dd>
506 </dl><a NAME="DebuggerInterfacePython3.remoteEval" ID="DebuggerInterfacePython3.remoteEval"></a>
507 <h4>DebuggerInterfacePython3.remoteEval</h4>
508 <b>remoteEval</b>(<i>arg</i>)
509 <p>
510 Public method to evaluate arg in the current context of the debugged
511 program.
512 </p><dl>
513 <dt><i>arg</i></dt>
514 <dd>
515 the arguments to evaluate (string)
516 </dd>
517 </dl><a NAME="DebuggerInterfacePython3.remoteExec" ID="DebuggerInterfacePython3.remoteExec"></a>
518 <h4>DebuggerInterfacePython3.remoteExec</h4>
519 <b>remoteExec</b>(<i>stmt</i>)
520 <p>
521 Public method to execute stmt in the current context of the debugged
522 program.
523 </p><dl>
524 <dt><i>stmt</i></dt>
525 <dd>
526 statement to execute (string)
527 </dd>
528 </dl><a NAME="DebuggerInterfacePython3.remoteLoad" ID="DebuggerInterfacePython3.remoteLoad"></a> 519 </dl><a NAME="DebuggerInterfacePython3.remoteLoad" ID="DebuggerInterfacePython3.remoteLoad"></a>
529 <h4>DebuggerInterfacePython3.remoteLoad</h4> 520 <h4>DebuggerInterfacePython3.remoteLoad</h4>
530 <b>remoteLoad</b>(<i>fn, argv, wd, traceInterpreter=False, autoContinue=True, autoFork=False, forkChild=False</i>) 521 <b>remoteLoad</b>(<i>fn, argv, wd, traceInterpreter=False, autoContinue=True, autoFork=False, forkChild=False</i>)
531 <p> 522 <p>
532 Public method to load a new program to debug. 523 Public method to load a new program to debug.
697 <b>remoteUTStop</b>(<i></i>) 688 <b>remoteUTStop</b>(<i></i>)
698 <p> 689 <p>
699 Public method to stop a unittest run. 690 Public method to stop a unittest run.
700 </p><a NAME="DebuggerInterfacePython3.remoteWatchpoint" ID="DebuggerInterfacePython3.remoteWatchpoint"></a> 691 </p><a NAME="DebuggerInterfacePython3.remoteWatchpoint" ID="DebuggerInterfacePython3.remoteWatchpoint"></a>
701 <h4>DebuggerInterfacePython3.remoteWatchpoint</h4> 692 <h4>DebuggerInterfacePython3.remoteWatchpoint</h4>
702 <b>remoteWatchpoint</b>(<i>cond, set, temp=False</i>) 693 <b>remoteWatchpoint</b>(<i>cond, setWatch, temp=False</i>)
703 <p> 694 <p>
704 Public method to set or clear a watch expression. 695 Public method to set or clear a watch expression.
705 </p><dl> 696 </p><dl>
706 <dt><i>cond</i></dt> 697 <dt><i>cond</i></dt>
707 <dd> 698 <dd>
708 expression of the watch expression (string) 699 expression of the watch expression (string)
709 </dd><dt><i>set</i></dt> 700 </dd><dt><i>setWatch</i></dt>
710 <dd> 701 <dd>
711 flag indicating setting or resetting a watch expression 702 flag indicating setting or resetting a watch expression
712 (boolean) 703 (boolean)
713 </dd><dt><i>temp</i></dt> 704 </dd><dt><i>temp</i></dt>
714 <dd> 705 <dd>

eric ide

mercurial