Documentation/Source/eric6.DebugClients.Python.eric6dbgstub.html

changeset 5245
e1908fd9deac
equal deleted inserted replaced
5244:54a0f215a6f0 5245:e1908fd9deac
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.DebugClients.Python.eric6dbgstub</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>eric6.DebugClients.Python.eric6dbgstub</h1>
23 <p>
24 Module implementing a debugger stub for remote debugging.
25 </p>
26 <h3>Global Attributes</h3>
27 <table>
28 <tr><td>__scriptname</td></tr><tr><td>debugger</td></tr><tr><td>ericpath</td></tr><tr><td>modDir</td></tr>
29 </table>
30 <h3>Classes</h3>
31 <table>
32 <tr><td>None</td></tr>
33 </table>
34 <h3>Functions</h3>
35 <table>
36 <tr>
37 <td><a href="#initDebugger">initDebugger</a></td>
38 <td>Module function to initialize a debugger for remote debugging.</td>
39 </tr><tr>
40 <td><a href="#runcall">runcall</a></td>
41 <td>Module function mimicing the Pdb interface.</td>
42 </tr><tr>
43 <td><a href="#setScriptname">setScriptname</a></td>
44 <td>Module function to set the scriptname to be reported back to the IDE.</td>
45 </tr><tr>
46 <td><a href="#startDebugger">startDebugger</a></td>
47 <td>Module function used to start the remote debugger.</td>
48 </tr>
49 </table>
50 <hr /><hr />
51 <a NAME="initDebugger" ID="initDebugger"></a>
52 <h2>initDebugger</h2>
53 <b>initDebugger</b>(<i>kind="standard"</i>)
54 <p>
55 Module function to initialize a debugger for remote debugging.
56 </p><dl>
57 <dt><i>kind</i></dt>
58 <dd>
59 type of debugger ("standard" or "threads")
60 </dd>
61 </dl><dl>
62 <dt>Returns:</dt>
63 <dd>
64 flag indicating success (boolean)
65 </dd>
66 </dl><dl>
67 <dt>Raises <b>ValueError</b>:</dt>
68 <dd>
69 raised to indicate a wrong debugger kind
70 </dd>
71 </dl>
72 <div align="right"><a href="#top">Up</a></div>
73 <hr /><hr />
74 <a NAME="runcall" ID="runcall"></a>
75 <h2>runcall</h2>
76 <b>runcall</b>(<i>func, *args</i>)
77 <p>
78 Module function mimicing the Pdb interface.
79 </p><dl>
80 <dt><i>func</i></dt>
81 <dd>
82 function to be called (function object)
83 </dd><dt><i>*args</i></dt>
84 <dd>
85 arguments being passed to func
86 </dd>
87 </dl><dl>
88 <dt>Returns:</dt>
89 <dd>
90 the function result
91 </dd>
92 </dl>
93 <div align="right"><a href="#top">Up</a></div>
94 <hr /><hr />
95 <a NAME="setScriptname" ID="setScriptname"></a>
96 <h2>setScriptname</h2>
97 <b>setScriptname</b>(<i>name</i>)
98 <p>
99 Module function to set the scriptname to be reported back to the IDE.
100 </p><dl>
101 <dt><i>name</i></dt>
102 <dd>
103 absolute pathname of the script (string)
104 </dd>
105 </dl>
106 <div align="right"><a href="#top">Up</a></div>
107 <hr /><hr />
108 <a NAME="startDebugger" ID="startDebugger"></a>
109 <h2>startDebugger</h2>
110 <b>startDebugger</b>(<i>enableTrace=True, exceptions=True, tracePython=False, redirect=True</i>)
111 <p>
112 Module function used to start the remote debugger.
113 </p><dl>
114 <dt><i>enableTrace=</i></dt>
115 <dd>
116 flag to enable the tracing function (boolean)
117 </dd><dt><i>exceptions=</i></dt>
118 <dd>
119 flag to enable exception reporting of the IDE
120 (boolean)
121 </dd><dt><i>tracePython=</i></dt>
122 <dd>
123 flag to enable tracing into the Python library
124 (boolean)
125 </dd><dt><i>redirect=</i></dt>
126 <dd>
127 flag indicating redirection of stdin, stdout and
128 stderr (boolean)
129 </dd>
130 </dl>
131 <div align="right"><a href="#top">Up</a></div>
132 <hr />
133 </body></html>

eric ide

mercurial