Documentation/Source/eric5.DebugClients.Python.eric5dbgstub.html

changeset 58
37f0444c3479
parent 41
572a009369f0
child 409
0ea528e80202
equal deleted inserted replaced
57:81326a94fdca 58:37f0444c3479
20 </style> 20 </style>
21 </head> 21 </head>
22 <body><a NAME="top" ID="top"></a> 22 <body><a NAME="top" ID="top"></a>
23 <h1>eric5.DebugClients.Python.eric5dbgstub</h1> 23 <h1>eric5.DebugClients.Python.eric5dbgstub</h1>
24 <p> 24 <p>
25 &#77;&#111;&#100;&#117;&#108;&#101; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#100;&#101;&#98;&#117;&#103;&#103;&#101;&#114; &#115;&#116;&#117;&#98; &#102;&#111;&#114; &#114;&#101;&#109;&#111;&#116;&#101; &#100;&#101;&#98;&#117;&#103;&#103;&#105;&#110;&#103;. 25 Module implementing a debugger stub for remote debugging.
26 </p> 26 </p>
27 <h3>Global Attributes</h3> 27 <h3>Global Attributes</h3>
28 <table> 28 <table>
29 <tr><td>__scriptname</td></tr><tr><td>debugger</td></tr><tr><td>ericpath</td></tr><tr><td>modDir</td></tr> 29 <tr><td>__scriptname</td></tr><tr><td>debugger</td></tr><tr><td>ericpath</td></tr><tr><td>modDir</td></tr>
30 </table> 30 </table>
34 </table> 34 </table>
35 <h3>Functions</h3> 35 <h3>Functions</h3>
36 <table> 36 <table>
37 <tr> 37 <tr>
38 <td><a href="#initDebugger">initDebugger</a></td> 38 <td><a href="#initDebugger">initDebugger</a></td>
39 <td>&#77;&#111;&#100;&#117;&#108;&#101; &#102;&#117;&#110;&#99;&#116;&#105;&#111;&#110; &#116;&#111; &#105;&#110;&#105;&#116;&#105;&#97;&#108;&#105;z&#101; &#97; &#100;&#101;&#98;&#117;&#103;&#103;&#101;&#114; &#102;&#111;&#114; &#114;&#101;&#109;&#111;&#116;&#101; &#100;&#101;&#98;&#117;&#103;&#103;&#105;&#110;&#103;.</td> 39 <td>Module function to initialize a debugger for remote debugging.</td>
40 </tr><tr> 40 </tr><tr>
41 <td><a href="#runcall">runcall</a></td> 41 <td><a href="#runcall">runcall</a></td>
42 <td>&#77;&#111;&#100;&#117;&#108;&#101; &#102;&#117;&#110;&#99;&#116;&#105;&#111;&#110; &#109;&#105;&#109;&#105;&#99;&#105;&#110;&#103; &#116;&#104;&#101; &#80;&#100;&#98; &#105;&#110;&#116;&#101;&#114;&#102;&#97;&#99;&#101;.</td> 42 <td>Module function mimicing the Pdb interface.</td>
43 </tr><tr> 43 </tr><tr>
44 <td><a href="#setScriptname">setScriptname</a></td> 44 <td><a href="#setScriptname">setScriptname</a></td>
45 <td>&#77;&#111;&#100;&#117;&#108;&#101; &#102;&#117;&#110;&#99;&#116;&#105;&#111;&#110; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#115;&#99;&#114;&#105;&#112;&#116;&#110;&#97;&#109;&#101; &#116;&#111; &#98;&#101; &#114;&#101;&#112;&#111;&#114;&#116;&#101;&#100; &#98;&#97;&#99;&#107; &#116;&#111; &#116;&#104;&#101; &#73;&#68;&#69;.</td> 45 <td>Module function to set the scriptname to be reported back to the IDE.</td>
46 </tr><tr> 46 </tr><tr>
47 <td><a href="#startDebugger">startDebugger</a></td> 47 <td><a href="#startDebugger">startDebugger</a></td>
48 <td>&#77;&#111;&#100;&#117;&#108;&#101; &#102;&#117;&#110;&#99;&#116;&#105;&#111;&#110; &#117;&#115;&#101;&#100; &#116;&#111; &#115;&#116;&#97;&#114;&#116; &#116;&#104;&#101; &#114;&#101;&#109;&#111;&#116;&#101; &#100;&#101;&#98;&#117;&#103;&#103;&#101;&#114;.</td> 48 <td>Module function used to start the remote debugger.</td>
49 </tr> 49 </tr>
50 </table> 50 </table>
51 <hr /><hr /> 51 <hr /><hr />
52 <a NAME="initDebugger" ID="initDebugger"></a> 52 <a NAME="initDebugger" ID="initDebugger"></a>
53 <h2>initDebugger</h2> 53 <h2>initDebugger</h2>
54 <b>initDebugger</b>(<i>kind = "standard"</i>) 54 <b>initDebugger</b>(<i>kind = "standard"</i>)
55 <p> 55 <p>
56 &#77;&#111;&#100;&#117;&#108;&#101; &#102;&#117;&#110;&#99;&#116;&#105;&#111;&#110; &#116;&#111; &#105;&#110;&#105;&#116;&#105;&#97;&#108;&#105;z&#101; &#97; &#100;&#101;&#98;&#117;&#103;&#103;&#101;&#114; &#102;&#111;&#114; &#114;&#101;&#109;&#111;&#116;&#101; &#100;&#101;&#98;&#117;&#103;&#103;&#105;&#110;&#103;. 56 Module function to initialize a debugger for remote debugging.
57 </p><dl> 57 </p><dl>
58 <dt><i>kind</i></dt> 58 <dt><i>kind</i></dt>
59 <dd> 59 <dd>
60 &#116;y&#112;&#101; &#111;&#102; &#100;&#101;&#98;&#117;&#103;&#103;&#101;&#114; ("&#115;&#116;&#97;&#110;&#100;&#97;&#114;&#100;" &#111;&#114; "&#116;&#104;&#114;&#101;&#97;&#100;&#115;") 60 type of debugger ("standard" or "threads")
61 </dd> 61 </dd>
62 </dl><dl> 62 </dl><dl>
63 <dt>Returns:</dt> 63 <dt>Returns:</dt>
64 <dd> 64 <dd>
65 &#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103; &#115;&#117;&#99;&#99;&#101;&#115;&#115; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;) 65 flag indicating success (boolean)
66 </dd> 66 </dd>
67 </dl> 67 </dl>
68 <div align="right"><a href="#top">Up</a></div> 68 <div align="right"><a href="#top">Up</a></div>
69 <hr /><hr /> 69 <hr /><hr />
70 <a NAME="runcall" ID="runcall"></a> 70 <a NAME="runcall" ID="runcall"></a>
71 <h2>runcall</h2> 71 <h2>runcall</h2>
72 <b>runcall</b>(<i>func, *args</i>) 72 <b>runcall</b>(<i>func, *args</i>)
73 <p> 73 <p>
74 &#77;&#111;&#100;&#117;&#108;&#101; &#102;&#117;&#110;&#99;&#116;&#105;&#111;&#110; &#109;&#105;&#109;&#105;&#99;&#105;&#110;&#103; &#116;&#104;&#101; &#80;&#100;&#98; &#105;&#110;&#116;&#101;&#114;&#102;&#97;&#99;&#101;. 74 Module function mimicing the Pdb interface.
75 </p><dl> 75 </p><dl>
76 <dt><i>func</i></dt> 76 <dt><i>func</i></dt>
77 <dd> 77 <dd>
78 &#102;&#117;&#110;&#99;&#116;&#105;&#111;&#110; &#116;&#111; &#98;&#101; &#99;&#97;&#108;&#108;&#101;&#100; (&#102;&#117;&#110;&#99;&#116;&#105;&#111;&#110; &#111;&#98;&#106;&#101;&#99;&#116;) 78 function to be called (function object)
79 </dd><dt><i>*args</i></dt> 79 </dd><dt><i>*args</i></dt>
80 <dd> 80 <dd>
81 &#97;&#114;&#103;&#117;&#109;&#101;&#110;&#116;&#115; &#98;&#101;&#105;&#110;&#103; &#112;&#97;&#115;&#115;&#101;&#100; &#116;&#111; &#102;&#117;&#110;&#99; 81 arguments being passed to func
82 </dd> 82 </dd>
83 </dl><dl> 83 </dl><dl>
84 <dt>Returns:</dt> 84 <dt>Returns:</dt>
85 <dd> 85 <dd>
86 &#116;&#104;&#101; &#102;&#117;&#110;&#99;&#116;&#105;&#111;&#110; &#114;&#101;&#115;&#117;&#108;&#116; 86 the function result
87 </dd> 87 </dd>
88 </dl> 88 </dl>
89 <div align="right"><a href="#top">Up</a></div> 89 <div align="right"><a href="#top">Up</a></div>
90 <hr /><hr /> 90 <hr /><hr />
91 <a NAME="setScriptname" ID="setScriptname"></a> 91 <a NAME="setScriptname" ID="setScriptname"></a>
92 <h2>setScriptname</h2> 92 <h2>setScriptname</h2>
93 <b>setScriptname</b>(<i>name</i>) 93 <b>setScriptname</b>(<i>name</i>)
94 <p> 94 <p>
95 &#77;&#111;&#100;&#117;&#108;&#101; &#102;&#117;&#110;&#99;&#116;&#105;&#111;&#110; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#115;&#99;&#114;&#105;&#112;&#116;&#110;&#97;&#109;&#101; &#116;&#111; &#98;&#101; &#114;&#101;&#112;&#111;&#114;&#116;&#101;&#100; &#98;&#97;&#99;&#107; &#116;&#111; &#116;&#104;&#101; &#73;&#68;&#69;. 95 Module function to set the scriptname to be reported back to the IDE.
96 </p><dl> 96 </p><dl>
97 <dt><i>name</i></dt> 97 <dt><i>name</i></dt>
98 <dd> 98 <dd>
99 &#97;&#98;&#115;&#111;&#108;&#117;&#116;&#101; &#112;&#97;&#116;&#104;&#110;&#97;&#109;&#101; &#111;&#102; &#116;&#104;&#101; &#115;&#99;&#114;&#105;&#112;&#116; (&#115;&#116;&#114;&#105;&#110;&#103;) 99 absolute pathname of the script (string)
100 </dd> 100 </dd>
101 </dl> 101 </dl>
102 <div align="right"><a href="#top">Up</a></div> 102 <div align="right"><a href="#top">Up</a></div>
103 <hr /><hr /> 103 <hr /><hr />
104 <a NAME="startDebugger" ID="startDebugger"></a> 104 <a NAME="startDebugger" ID="startDebugger"></a>
105 <h2>startDebugger</h2> 105 <h2>startDebugger</h2>
106 <b>startDebugger</b>(<i>enableTrace = True, exceptions = True, tracePython = False, redirect = True</i>) 106 <b>startDebugger</b>(<i>enableTrace = True, exceptions = True, tracePython = False, redirect = True</i>)
107 <p> 107 <p>
108 &#77;&#111;&#100;&#117;&#108;&#101; &#102;&#117;&#110;&#99;&#116;&#105;&#111;&#110; &#117;&#115;&#101;&#100; &#116;&#111; &#115;&#116;&#97;&#114;&#116; &#116;&#104;&#101; &#114;&#101;&#109;&#111;&#116;&#101; &#100;&#101;&#98;&#117;&#103;&#103;&#101;&#114;. 108 Module function used to start the remote debugger.
109 </p><dl> 109 </p><dl>
110 <dt><i>enableTrace=</i></dt> 110 <dt><i>enableTrace=</i></dt>
111 <dd> 111 <dd>
112 &#102;&#108;&#97;&#103; &#116;&#111; &#101;&#110;&#97;&#98;&#108;&#101; &#116;&#104;&#101; &#116;&#114;&#97;&#99;&#105;&#110;&#103; &#102;&#117;&#110;&#99;&#116;&#105;&#111;&#110; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;) 112 flag to enable the tracing function (boolean)
113 </dd><dt><i>exceptions=</i></dt> 113 </dd><dt><i>exceptions=</i></dt>
114 <dd> 114 <dd>
115 &#102;&#108;&#97;&#103; &#116;&#111; &#101;&#110;&#97;&#98;&#108;&#101; &#101;x&#99;&#101;&#112;&#116;&#105;&#111;&#110; &#114;&#101;&#112;&#111;&#114;&#116;&#105;&#110;&#103; &#111;&#102; &#116;&#104;&#101; &#73;&#68;&#69; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;) 115 flag to enable exception reporting of the IDE (boolean)
116 </dd><dt><i>tracePython=</i></dt> 116 </dd><dt><i>tracePython=</i></dt>
117 <dd> 117 <dd>
118 &#102;&#108;&#97;&#103; &#116;&#111; &#101;&#110;&#97;&#98;&#108;&#101; &#116;&#114;&#97;&#99;&#105;&#110;&#103; &#105;&#110;&#116;&#111; &#116;&#104;&#101; &#80;y&#116;&#104;&#111;&#110; &#108;&#105;&#98;&#114;&#97;&#114;y (&#98;&#111;&#111;&#108;&#101;&#97;&#110;) 118 flag to enable tracing into the Python library (boolean)
119 </dd><dt><i>redirect=</i></dt> 119 </dd><dt><i>redirect=</i></dt>
120 <dd> 120 <dd>
121 &#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103; &#114;&#101;&#100;&#105;&#114;&#101;&#99;&#116;&#105;&#111;&#110; &#111;&#102; &#115;&#116;&#100;&#105;&#110;, &#115;&#116;&#100;&#111;&#117;&#116; &#97;&#110;&#100; &#115;&#116;&#100;&#101;&#114;&#114; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;) 121 flag indicating redirection of stdin, stdout and stderr (boolean)
122 </dd> 122 </dd>
123 </dl> 123 </dl>
124 <div align="right"><a href="#top">Up</a></div> 124 <div align="right"><a href="#top">Up</a></div>
125 <hr /> 125 <hr />
126 </body></html> 126 </body></html>

eric ide

mercurial