5141:bc64243b7672 | 5144:1ab536d25072 |
---|---|
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html><head> | 2 <html><head> |
3 <title>eric6.Debugger.DebuggerInterfacePython</title> | 3 <title>eric6.Debugger.DebuggerInterfacePython2</title> |
4 <meta charset="UTF-8"> | 4 <meta charset="UTF-8"> |
5 <style> | 5 <style> |
6 body { | 6 body { |
7 background: #EDECE6; | 7 background: #EDECE6; |
8 margin: 0em 1em 10em 1em; | 8 margin: 0em 1em 10em 1em; |
17 a { color: #BA6D36; } | 17 a { color: #BA6D36; } |
18 | 18 |
19 </style> | 19 </style> |
20 </head> | 20 </head> |
21 <body><a NAME="top" ID="top"></a> | 21 <body><a NAME="top" ID="top"></a> |
22 <h1>eric6.Debugger.DebuggerInterfacePython</h1> | 22 <h1>eric6.Debugger.DebuggerInterfacePython2</h1> |
23 <p> | 23 <p> |
24 Module implementing the Python debugger interface for the debug server. | 24 Module implementing the Python debugger interface for the debug server. |
25 </p> | 25 </p> |
26 <h3>Global Attributes</h3> | 26 <h3>Global Attributes</h3> |
27 <table> | 27 <table> |
28 <tr><td>ClientDefaultCapabilities</td></tr> | 28 <tr><td>ClientDefaultCapabilities</td></tr> |
29 </table> | 29 </table> |
30 <h3>Classes</h3> | 30 <h3>Classes</h3> |
31 <table> | 31 <table> |
32 <tr> | 32 <tr> |
33 <td><a href="#DebuggerInterfacePython">DebuggerInterfacePython</a></td> | 33 <td><a href="#DebuggerInterfacePython2">DebuggerInterfacePython2</a></td> |
34 <td>Class implementing the Python debugger interface for the debug server.</td> | 34 <td>Class implementing the Python 2 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> |
40 <td><a href="#createDebuggerInterfacePython">createDebuggerInterfacePython</a></td> | 40 <td><a href="#createDebuggerInterfacePython2">createDebuggerInterfacePython2</a></td> |
41 <td>Module function to create a debugger interface instance.</td> | 41 <td>Module function to create a debugger interface instance.</td> |
42 </tr><tr> | 42 </tr><tr> |
43 <td><a href="#getRegistryData">getRegistryData</a></td> | 43 <td><a href="#getRegistryData">getRegistryData</a></td> |
44 <td>Module function to get characterizing data for the debugger interface.</td> | 44 <td>Module function to get characterizing data for the debugger interface.</td> |
45 </tr> | 45 </tr> |
46 </table> | 46 </table> |
47 <hr /><hr /> | 47 <hr /><hr /> |
48 <a NAME="DebuggerInterfacePython" ID="DebuggerInterfacePython"></a> | 48 <a NAME="DebuggerInterfacePython2" ID="DebuggerInterfacePython2"></a> |
49 <h2>DebuggerInterfacePython</h2> | 49 <h2>DebuggerInterfacePython2</h2> |
50 <p> | 50 <p> |
51 Class implementing the Python debugger interface for the debug server. | 51 Class implementing the Python 2 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> |
61 <tr><td>None</td></tr> | 61 <tr><td>None</td></tr> |
62 </table> | 62 </table> |
63 <h3>Methods</h3> | 63 <h3>Methods</h3> |
64 <table> | 64 <table> |
65 <tr> | 65 <tr> |
66 <td><a href="#DebuggerInterfacePython.__init__">DebuggerInterfacePython</a></td> | 66 <td><a href="#DebuggerInterfacePython2.__init__">DebuggerInterfacePython2</a></td> |
67 <td>Constructor</td> | 67 <td>Constructor</td> |
68 </tr><tr> | 68 </tr><tr> |
69 <td><a href="#DebuggerInterfacePython.__askForkTo">__askForkTo</a></td> | 69 <td><a href="#DebuggerInterfacePython2.__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="#DebuggerInterfacePython.__identityTranslation">__identityTranslation</a></td> | 72 <td><a href="#DebuggerInterfacePython2.__handleJsonCommand">__handleJsonCommand</a></td> |
73 <td>Private method to handle a command or response serialized as a JSON string.</td> | |
74 </tr><tr> | |
75 <td><a href="#DebuggerInterfacePython2.__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="#DebuggerInterfacePython.__parseClientLine">__parseClientLine</a></td> | 78 <td><a href="#DebuggerInterfacePython2.__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="#DebuggerInterfacePython.__remoteTranslation">__remoteTranslation</a></td> | 81 <td><a href="#DebuggerInterfacePython2.__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="#DebuggerInterfacePython.__sendCommand">__sendCommand</a></td> | 84 <td><a href="#DebuggerInterfacePython2.__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="#DebuggerInterfacePython.__startProcess">__startProcess</a></td> | 87 <td><a href="#DebuggerInterfacePython2.__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="#DebuggerInterfacePython.flush">flush</a></td> | 90 <td><a href="#DebuggerInterfacePython2.flush">flush</a></td> |
88 <td>Public slot to flush the queue.</td> | 91 <td>Public slot to flush the queue.</td> |
89 </tr><tr> | 92 </tr><tr> |
90 <td><a href="#DebuggerInterfacePython.getClientCapabilities">getClientCapabilities</a></td> | 93 <td><a href="#DebuggerInterfacePython2.getClientCapabilities">getClientCapabilities</a></td> |
91 <td>Public method to retrieve the debug clients capabilities.</td> | 94 <td>Public method to retrieve the debug clients capabilities.</td> |
92 </tr><tr> | 95 </tr><tr> |
93 <td><a href="#DebuggerInterfacePython.isConnected">isConnected</a></td> | 96 <td><a href="#DebuggerInterfacePython2.isConnected">isConnected</a></td> |
94 <td>Public method to test, if a debug client has connected.</td> | 97 <td>Public method to test, if a debug client has connected.</td> |
95 </tr><tr> | 98 </tr><tr> |
96 <td><a href="#DebuggerInterfacePython.newConnection">newConnection</a></td> | 99 <td><a href="#DebuggerInterfacePython2.newConnection">newConnection</a></td> |
97 <td>Public slot to handle a new connection.</td> | 100 <td>Public slot to handle a new connection.</td> |
98 </tr><tr> | 101 </tr><tr> |
99 <td><a href="#DebuggerInterfacePython.remoteBanner">remoteBanner</a></td> | 102 <td><a href="#DebuggerInterfacePython2.remoteBanner">remoteBanner</a></td> |
100 <td>Public slot to get the banner info of the remote client.</td> | 103 <td>Public slot to get the banner info of the remote client.</td> |
101 </tr><tr> | 104 </tr><tr> |
102 <td><a href="#DebuggerInterfacePython.remoteBreakpoint">remoteBreakpoint</a></td> | 105 <td><a href="#DebuggerInterfacePython2.remoteBreakpoint">remoteBreakpoint</a></td> |
103 <td>Public method to set or clear a breakpoint.</td> | 106 <td>Public method to set or clear a breakpoint.</td> |
104 </tr><tr> | 107 </tr><tr> |
105 <td><a href="#DebuggerInterfacePython.remoteBreakpointEnable">remoteBreakpointEnable</a></td> | 108 <td><a href="#DebuggerInterfacePython2.remoteBreakpointEnable">remoteBreakpointEnable</a></td> |
106 <td>Public method to enable or disable a breakpoint.</td> | 109 <td>Public method to enable or disable a breakpoint.</td> |
107 </tr><tr> | 110 </tr><tr> |
108 <td><a href="#DebuggerInterfacePython.remoteBreakpointIgnore">remoteBreakpointIgnore</a></td> | 111 <td><a href="#DebuggerInterfacePython2.remoteBreakpointIgnore">remoteBreakpointIgnore</a></td> |
109 <td>Public method to ignore a breakpoint the next couple of occurrences.</td> | 112 <td>Public method to ignore a breakpoint the next couple of occurrences.</td> |
110 </tr><tr> | 113 </tr><tr> |
111 <td><a href="#DebuggerInterfacePython.remoteCapabilities">remoteCapabilities</a></td> | 114 <td><a href="#DebuggerInterfacePython2.remoteCapabilities">remoteCapabilities</a></td> |
112 <td>Public slot to get the debug clients capabilities.</td> | 115 <td>Public slot to get the debug clients capabilities.</td> |
113 </tr><tr> | 116 </tr><tr> |
114 <td><a href="#DebuggerInterfacePython.remoteClientSetFilter">remoteClientSetFilter</a></td> | 117 <td><a href="#DebuggerInterfacePython2.remoteClientSetFilter">remoteClientSetFilter</a></td> |
115 <td>Public method to set a variables filter list.</td> | 118 <td>Public method to set a variables filter list.</td> |
116 </tr><tr> | 119 </tr><tr> |
117 <td><a href="#DebuggerInterfacePython.remoteClientVariable">remoteClientVariable</a></td> | 120 <td><a href="#DebuggerInterfacePython2.remoteClientVariable">remoteClientVariable</a></td> |
118 <td>Public method to request the variables of the debugged program.</td> | 121 <td>Public method to request the variables of the debugged program.</td> |
119 </tr><tr> | 122 </tr><tr> |
120 <td><a href="#DebuggerInterfacePython.remoteClientVariables">remoteClientVariables</a></td> | 123 <td><a href="#DebuggerInterfacePython2.remoteClientVariables">remoteClientVariables</a></td> |
121 <td>Public method to request the variables of the debugged program.</td> | 124 <td>Public method to request the variables of the debugged program.</td> |
122 </tr><tr> | 125 </tr><tr> |
123 <td><a href="#DebuggerInterfacePython.remoteCompletion">remoteCompletion</a></td> | 126 <td><a href="#DebuggerInterfacePython2.remoteCompletion">remoteCompletion</a></td> |
124 <td>Public slot to get the a list of possible commandline completions from the remote client.</td> | 127 <td>Public slot to get the a list of possible commandline completions from the remote client.</td> |
125 </tr><tr> | 128 </tr><tr> |
126 <td><a href="#DebuggerInterfacePython.remoteContinue">remoteContinue</a></td> | 129 <td><a href="#DebuggerInterfacePython2.remoteContinue">remoteContinue</a></td> |
127 <td>Public method to continue the debugged program.</td> | 130 <td>Public method to continue the debugged program.</td> |
128 </tr><tr> | 131 </tr><tr> |
129 <td><a href="#DebuggerInterfacePython.remoteCoverage">remoteCoverage</a></td> | 132 <td><a href="#DebuggerInterfacePython2.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="#DebuggerInterfacePython.remoteEnvironment">remoteEnvironment</a></td> | 135 <td><a href="#DebuggerInterfacePython2.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> | 137 </tr><tr> |
135 <td><a href="#DebuggerInterfacePython.remoteEval">remoteEval</a></td> | 138 <td><a href="#DebuggerInterfacePython2.remoteLoad">remoteLoad</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="#DebuggerInterfacePython.remoteExec">remoteExec</a></td> | |
139 <td>Public method to execute stmt in the current context of the debugged program.</td> | |
140 </tr><tr> | |
141 <td><a href="#DebuggerInterfacePython.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="#DebuggerInterfacePython.remoteProfile">remoteProfile</a></td> | 141 <td><a href="#DebuggerInterfacePython2.remoteProfile">remoteProfile</a></td> |
145 <td>Public method to load a new program to collect profiling data.</td> | 142 <td>Public method to load a new program to collect profiling data.</td> |
146 </tr><tr> | 143 </tr><tr> |
147 <td><a href="#DebuggerInterfacePython.remoteRawInput">remoteRawInput</a></td> | 144 <td><a href="#DebuggerInterfacePython2.remoteRawInput">remoteRawInput</a></td> |
148 <td>Public method to send the raw input to the debugged program.</td> | 145 <td>Public method to send the raw input to the debugged program.</td> |
149 </tr><tr> | 146 </tr><tr> |
150 <td><a href="#DebuggerInterfacePython.remoteRun">remoteRun</a></td> | 147 <td><a href="#DebuggerInterfacePython2.remoteRun">remoteRun</a></td> |
151 <td>Public method to load a new program to run.</td> | 148 <td>Public method to load a new program to run.</td> |
152 </tr><tr> | 149 </tr><tr> |
153 <td><a href="#DebuggerInterfacePython.remoteSetThread">remoteSetThread</a></td> | 150 <td><a href="#DebuggerInterfacePython2.remoteSetThread">remoteSetThread</a></td> |
154 <td>Public method to request to set the given thread as current thread.</td> | 151 <td>Public method to request to set the given thread as current thread.</td> |
155 </tr><tr> | 152 </tr><tr> |
156 <td><a href="#DebuggerInterfacePython.remoteStatement">remoteStatement</a></td> | 153 <td><a href="#DebuggerInterfacePython2.remoteStatement">remoteStatement</a></td> |
157 <td>Public method to execute a Python statement.</td> | 154 <td>Public method to execute a Python statement.</td> |
158 </tr><tr> | 155 </tr><tr> |
159 <td><a href="#DebuggerInterfacePython.remoteStep">remoteStep</a></td> | 156 <td><a href="#DebuggerInterfacePython2.remoteStep">remoteStep</a></td> |
160 <td>Public method to single step the debugged program.</td> | 157 <td>Public method to single step the debugged program.</td> |
161 </tr><tr> | 158 </tr><tr> |
162 <td><a href="#DebuggerInterfacePython.remoteStepOut">remoteStepOut</a></td> | 159 <td><a href="#DebuggerInterfacePython2.remoteStepOut">remoteStepOut</a></td> |
163 <td>Public method to step out the debugged program.</td> | 160 <td>Public method to step out the debugged program.</td> |
164 </tr><tr> | 161 </tr><tr> |
165 <td><a href="#DebuggerInterfacePython.remoteStepOver">remoteStepOver</a></td> | 162 <td><a href="#DebuggerInterfacePython2.remoteStepOver">remoteStepOver</a></td> |
166 <td>Public method to step over the debugged program.</td> | 163 <td>Public method to step over the debugged program.</td> |
167 </tr><tr> | 164 </tr><tr> |
168 <td><a href="#DebuggerInterfacePython.remoteStepQuit">remoteStepQuit</a></td> | 165 <td><a href="#DebuggerInterfacePython2.remoteStepQuit">remoteStepQuit</a></td> |
169 <td>Public method to stop the debugged program.</td> | 166 <td>Public method to stop the debugged program.</td> |
170 </tr><tr> | 167 </tr><tr> |
171 <td><a href="#DebuggerInterfacePython.remoteThreadList">remoteThreadList</a></td> | 168 <td><a href="#DebuggerInterfacePython2.remoteThreadList">remoteThreadList</a></td> |
172 <td>Public method to request the list of threads from the client.</td> | 169 <td>Public method to request the list of threads from the client.</td> |
173 </tr><tr> | 170 </tr><tr> |
174 <td><a href="#DebuggerInterfacePython.remoteUTPrepare">remoteUTPrepare</a></td> | 171 <td><a href="#DebuggerInterfacePython2.remoteUTPrepare">remoteUTPrepare</a></td> |
175 <td>Public method to prepare a new unittest run.</td> | 172 <td>Public method to prepare a new unittest run.</td> |
176 </tr><tr> | 173 </tr><tr> |
177 <td><a href="#DebuggerInterfacePython.remoteUTRun">remoteUTRun</a></td> | 174 <td><a href="#DebuggerInterfacePython2.remoteUTRun">remoteUTRun</a></td> |
178 <td>Public method to start a unittest run.</td> | 175 <td>Public method to start a unittest run.</td> |
179 </tr><tr> | 176 </tr><tr> |
180 <td><a href="#DebuggerInterfacePython.remoteUTStop">remoteUTStop</a></td> | 177 <td><a href="#DebuggerInterfacePython2.remoteUTStop">remoteUTStop</a></td> |
181 <td>Public method to stop a unittest run.</td> | 178 <td>Public method to stop a unittest run.</td> |
182 </tr><tr> | 179 </tr><tr> |
183 <td><a href="#DebuggerInterfacePython.remoteWatchpoint">remoteWatchpoint</a></td> | 180 <td><a href="#DebuggerInterfacePython2.remoteWatchpoint">remoteWatchpoint</a></td> |
184 <td>Public method to set or clear a watch expression.</td> | 181 <td>Public method to set or clear a watch expression.</td> |
185 </tr><tr> | 182 </tr><tr> |
186 <td><a href="#DebuggerInterfacePython.remoteWatchpointEnable">remoteWatchpointEnable</a></td> | 183 <td><a href="#DebuggerInterfacePython2.remoteWatchpointEnable">remoteWatchpointEnable</a></td> |
187 <td>Public method to enable or disable a watch expression.</td> | 184 <td>Public method to enable or disable a watch expression.</td> |
188 </tr><tr> | 185 </tr><tr> |
189 <td><a href="#DebuggerInterfacePython.remoteWatchpointIgnore">remoteWatchpointIgnore</a></td> | 186 <td><a href="#DebuggerInterfacePython2.remoteWatchpointIgnore">remoteWatchpointIgnore</a></td> |
190 <td>Public method to ignore a watch expression the next couple of occurrences.</td> | 187 <td>Public method to ignore a watch expression the next couple of occurrences.</td> |
191 </tr><tr> | 188 </tr><tr> |
192 <td><a href="#DebuggerInterfacePython.setCallTraceEnabled">setCallTraceEnabled</a></td> | 189 <td><a href="#DebuggerInterfacePython2.setCallTraceEnabled">setCallTraceEnabled</a></td> |
193 <td>Public method to set the call trace state.</td> | 190 <td>Public method to set the call trace state.</td> |
194 </tr><tr> | 191 </tr><tr> |
195 <td><a href="#DebuggerInterfacePython.shutdown">shutdown</a></td> | 192 <td><a href="#DebuggerInterfacePython2.shutdown">shutdown</a></td> |
196 <td>Public method to cleanly shut down.</td> | 193 <td>Public method to cleanly shut down.</td> |
197 </tr><tr> | 194 </tr><tr> |
198 <td><a href="#DebuggerInterfacePython.startRemote">startRemote</a></td> | 195 <td><a href="#DebuggerInterfacePython2.startRemote">startRemote</a></td> |
199 <td>Public method to start a remote Python interpreter.</td> | 196 <td>Public method to start a remote Python interpreter.</td> |
200 </tr><tr> | 197 </tr><tr> |
201 <td><a href="#DebuggerInterfacePython.startRemoteForProject">startRemoteForProject</a></td> | 198 <td><a href="#DebuggerInterfacePython2.startRemoteForProject">startRemoteForProject</a></td> |
202 <td>Public method to start a remote Python interpreter for a project.</td> | 199 <td>Public method to start a remote Python interpreter for a project.</td> |
203 </tr> | 200 </tr> |
204 </table> | 201 </table> |
205 <h3>Static Methods</h3> | 202 <h3>Static Methods</h3> |
206 <table> | 203 <table> |
207 <tr><td>None</td></tr> | 204 <tr><td>None</td></tr> |
208 </table> | 205 </table> |
209 <a NAME="DebuggerInterfacePython.__init__" ID="DebuggerInterfacePython.__init__"></a> | 206 <a NAME="DebuggerInterfacePython2.__init__" ID="DebuggerInterfacePython2.__init__"></a> |
210 <h4>DebuggerInterfacePython (Constructor)</h4> | 207 <h4>DebuggerInterfacePython2 (Constructor)</h4> |
211 <b>DebuggerInterfacePython</b>(<i>debugServer, passive</i>) | 208 <b>DebuggerInterfacePython2</b>(<i>debugServer, passive</i>) |
212 <p> | 209 <p> |
213 Constructor | 210 Constructor |
214 </p><dl> | 211 </p><dl> |
215 <dt><i>debugServer</i></dt> | 212 <dt><i>debugServer</i></dt> |
216 <dd> | 213 <dd> |
217 reference to the debug server (DebugServer) | 214 reference to the debug server (DebugServer) |
218 </dd><dt><i>passive</i></dt> | 215 </dd><dt><i>passive</i></dt> |
219 <dd> | 216 <dd> |
220 flag indicating passive connection mode (boolean) | 217 flag indicating passive connection mode (boolean) |
221 </dd> | 218 </dd> |
222 </dl><a NAME="DebuggerInterfacePython.__askForkTo" ID="DebuggerInterfacePython.__askForkTo"></a> | 219 </dl><a NAME="DebuggerInterfacePython2.__askForkTo" ID="DebuggerInterfacePython2.__askForkTo"></a> |
223 <h4>DebuggerInterfacePython.__askForkTo</h4> | 220 <h4>DebuggerInterfacePython2.__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="DebuggerInterfacePython.__identityTranslation" ID="DebuggerInterfacePython.__identityTranslation"></a> | 224 </p><a NAME="DebuggerInterfacePython2.__handleJsonCommand" ID="DebuggerInterfacePython2.__handleJsonCommand"></a> |
228 <h4>DebuggerInterfacePython.__identityTranslation</h4> | 225 <h4>DebuggerInterfacePython2.__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="DebuggerInterfacePython2.__identityTranslation" ID="DebuggerInterfacePython2.__identityTranslation"></a> | |
237 <h4>DebuggerInterfacePython2.__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> |
233 <dt><i>fn</i></dt> | 242 <dt><i>fn</i></dt> |
241 </dl><dl> | 250 </dl><dl> |
242 <dt>Returns:</dt> | 251 <dt>Returns:</dt> |
243 <dd> | 252 <dd> |
244 translated filename (string) | 253 translated filename (string) |
245 </dd> | 254 </dd> |
246 </dl><a NAME="DebuggerInterfacePython.__parseClientLine" ID="DebuggerInterfacePython.__parseClientLine"></a> | 255 </dl><a NAME="DebuggerInterfacePython2.__parseClientLine" ID="DebuggerInterfacePython2.__parseClientLine"></a> |
247 <h4>DebuggerInterfacePython.__parseClientLine</h4> | 256 <h4>DebuggerInterfacePython2.__parseClientLine</h4> |
248 <b>__parseClientLine</b>(<i></i>) | 257 <b>__parseClientLine</b>(<i></i>) |
249 <p> | 258 <p> |
250 Private method to handle data from the client. | 259 Private method to handle data from the client. |
251 </p><a NAME="DebuggerInterfacePython.__remoteTranslation" ID="DebuggerInterfacePython.__remoteTranslation"></a> | 260 </p><a NAME="DebuggerInterfacePython2.__remoteTranslation" ID="DebuggerInterfacePython2.__remoteTranslation"></a> |
252 <h4>DebuggerInterfacePython.__remoteTranslation</h4> | 261 <h4>DebuggerInterfacePython2.__remoteTranslation</h4> |
253 <b>__remoteTranslation</b>(<i>fn, remote2local=True</i>) | 262 <b>__remoteTranslation</b>(<i>fn, remote2local=True</i>) |
254 <p> | 263 <p> |
255 Private method to perform the path translation. | 264 Private method to perform the path translation. |
256 </p><dl> | 265 </p><dl> |
257 <dt><i>fn</i></dt> | 266 <dt><i>fn</i></dt> |
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="DebuggerInterfacePython.__sendCommand" ID="DebuggerInterfacePython.__sendCommand"></a> | 279 </dl><a NAME="DebuggerInterfacePython2.__sendJsonCommand" ID="DebuggerInterfacePython2.__sendJsonCommand"></a> |
271 <h4>DebuggerInterfacePython.__sendCommand</h4> | 280 <h4>DebuggerInterfacePython2.__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 |
279 </dd> | 288 </dd><dt><i>params</i> (dict)</dt> |
280 </dl><a NAME="DebuggerInterfacePython.__startProcess" ID="DebuggerInterfacePython.__startProcess"></a> | 289 <dd> |
281 <h4>DebuggerInterfacePython.__startProcess</h4> | 290 dictionary of named parameters for the command |
291 </dd> | |
292 </dl><a NAME="DebuggerInterfacePython2.__startProcess" ID="DebuggerInterfacePython2.__startProcess"></a> | |
293 <h4>DebuggerInterfacePython2.__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> |
284 Private method to start the debugger client process. | 296 Private method to start the debugger client process. |
285 </p><dl> | 297 </p><dl> |
286 <dt><i>program</i></dt> | 298 <dt><i>program</i></dt> |
297 </dl><dl> | 309 </dl><dl> |
298 <dt>Returns:</dt> | 310 <dt>Returns:</dt> |
299 <dd> | 311 <dd> |
300 the process object (QProcess) or None | 312 the process object (QProcess) or None |
301 </dd> | 313 </dd> |
302 </dl><a NAME="DebuggerInterfacePython.flush" ID="DebuggerInterfacePython.flush"></a> | 314 </dl><a NAME="DebuggerInterfacePython2.flush" ID="DebuggerInterfacePython2.flush"></a> |
303 <h4>DebuggerInterfacePython.flush</h4> | 315 <h4>DebuggerInterfacePython2.flush</h4> |
304 <b>flush</b>(<i></i>) | 316 <b>flush</b>(<i></i>) |
305 <p> | 317 <p> |
306 Public slot to flush the queue. | 318 Public slot to flush the queue. |
307 </p><a NAME="DebuggerInterfacePython.getClientCapabilities" ID="DebuggerInterfacePython.getClientCapabilities"></a> | 319 </p><a NAME="DebuggerInterfacePython2.getClientCapabilities" ID="DebuggerInterfacePython2.getClientCapabilities"></a> |
308 <h4>DebuggerInterfacePython.getClientCapabilities</h4> | 320 <h4>DebuggerInterfacePython2.getClientCapabilities</h4> |
309 <b>getClientCapabilities</b>(<i></i>) | 321 <b>getClientCapabilities</b>(<i></i>) |
310 <p> | 322 <p> |
311 Public method to retrieve the debug clients capabilities. | 323 Public method to retrieve the debug clients capabilities. |
312 </p><dl> | 324 </p><dl> |
313 <dt>Returns:</dt> | 325 <dt>Returns:</dt> |
314 <dd> | 326 <dd> |
315 debug client capabilities (integer) | 327 debug client capabilities (integer) |
316 </dd> | 328 </dd> |
317 </dl><a NAME="DebuggerInterfacePython.isConnected" ID="DebuggerInterfacePython.isConnected"></a> | 329 </dl><a NAME="DebuggerInterfacePython2.isConnected" ID="DebuggerInterfacePython2.isConnected"></a> |
318 <h4>DebuggerInterfacePython.isConnected</h4> | 330 <h4>DebuggerInterfacePython2.isConnected</h4> |
319 <b>isConnected</b>(<i></i>) | 331 <b>isConnected</b>(<i></i>) |
320 <p> | 332 <p> |
321 Public method to test, if a debug client has connected. | 333 Public method to test, if a debug client has connected. |
322 </p><dl> | 334 </p><dl> |
323 <dt>Returns:</dt> | 335 <dt>Returns:</dt> |
324 <dd> | 336 <dd> |
325 flag indicating the connection status (boolean) | 337 flag indicating the connection status (boolean) |
326 </dd> | 338 </dd> |
327 </dl><a NAME="DebuggerInterfacePython.newConnection" ID="DebuggerInterfacePython.newConnection"></a> | 339 </dl><a NAME="DebuggerInterfacePython2.newConnection" ID="DebuggerInterfacePython2.newConnection"></a> |
328 <h4>DebuggerInterfacePython.newConnection</h4> | 340 <h4>DebuggerInterfacePython2.newConnection</h4> |
329 <b>newConnection</b>(<i>sock</i>) | 341 <b>newConnection</b>(<i>sock</i>) |
330 <p> | 342 <p> |
331 Public slot to handle a new connection. | 343 Public slot to handle a new connection. |
332 </p><dl> | 344 </p><dl> |
333 <dt><i>sock</i></dt> | 345 <dt><i>sock</i></dt> |
337 </dl><dl> | 349 </dl><dl> |
338 <dt>Returns:</dt> | 350 <dt>Returns:</dt> |
339 <dd> | 351 <dd> |
340 flag indicating success (boolean) | 352 flag indicating success (boolean) |
341 </dd> | 353 </dd> |
342 </dl><a NAME="DebuggerInterfacePython.remoteBanner" ID="DebuggerInterfacePython.remoteBanner"></a> | 354 </dl><a NAME="DebuggerInterfacePython2.remoteBanner" ID="DebuggerInterfacePython2.remoteBanner"></a> |
343 <h4>DebuggerInterfacePython.remoteBanner</h4> | 355 <h4>DebuggerInterfacePython2.remoteBanner</h4> |
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="DebuggerInterfacePython.remoteBreakpoint" ID="DebuggerInterfacePython.remoteBreakpoint"></a> | 359 </p><a NAME="DebuggerInterfacePython2.remoteBreakpoint" ID="DebuggerInterfacePython2.remoteBreakpoint"></a> |
348 <h4>DebuggerInterfacePython.remoteBreakpoint</h4> | 360 <h4>DebuggerInterfacePython2.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> |
367 flag indicating a temporary breakpoint (boolean) | 380 flag indicating a temporary breakpoint (boolean) |
368 </dd> | 381 </dd> |
369 </dl><a NAME="DebuggerInterfacePython.remoteBreakpointEnable" ID="DebuggerInterfacePython.remoteBreakpointEnable"></a> | 382 </dl><a NAME="DebuggerInterfacePython2.remoteBreakpointEnable" ID="DebuggerInterfacePython2.remoteBreakpointEnable"></a> |
370 <h4>DebuggerInterfacePython.remoteBreakpointEnable</h4> | 383 <h4>DebuggerInterfacePython2.remoteBreakpointEnable</h4> |
371 <b>remoteBreakpointEnable</b>(<i>fn, line, enable</i>) | 384 <b>remoteBreakpointEnable</b>(<i>fn, line, enable</i>) |
372 <p> | 385 <p> |
373 Public method to enable or disable a breakpoint. | 386 Public method to enable or disable a breakpoint. |
374 </p><dl> | 387 </p><dl> |
375 <dt><i>fn</i></dt> | 388 <dt><i>fn</i></dt> |
381 </dd><dt><i>enable</i></dt> | 394 </dd><dt><i>enable</i></dt> |
382 <dd> | 395 <dd> |
383 flag indicating enabling or disabling a breakpoint | 396 flag indicating enabling or disabling a breakpoint |
384 (boolean) | 397 (boolean) |
385 </dd> | 398 </dd> |
386 </dl><a NAME="DebuggerInterfacePython.remoteBreakpointIgnore" ID="DebuggerInterfacePython.remoteBreakpointIgnore"></a> | 399 </dl><a NAME="DebuggerInterfacePython2.remoteBreakpointIgnore" ID="DebuggerInterfacePython2.remoteBreakpointIgnore"></a> |
387 <h4>DebuggerInterfacePython.remoteBreakpointIgnore</h4> | 400 <h4>DebuggerInterfacePython2.remoteBreakpointIgnore</h4> |
388 <b>remoteBreakpointIgnore</b>(<i>fn, line, count</i>) | 401 <b>remoteBreakpointIgnore</b>(<i>fn, line, count</i>) |
389 <p> | 402 <p> |
390 Public method to ignore a breakpoint the next couple of occurrences. | 403 Public method to ignore a breakpoint the next couple of occurrences. |
391 </p><dl> | 404 </p><dl> |
392 <dt><i>fn</i></dt> | 405 <dt><i>fn</i></dt> |
397 linenumber of the breakpoint (int) | 410 linenumber of the breakpoint (int) |
398 </dd><dt><i>count</i></dt> | 411 </dd><dt><i>count</i></dt> |
399 <dd> | 412 <dd> |
400 number of occurrences to ignore (int) | 413 number of occurrences to ignore (int) |
401 </dd> | 414 </dd> |
402 </dl><a NAME="DebuggerInterfacePython.remoteCapabilities" ID="DebuggerInterfacePython.remoteCapabilities"></a> | 415 </dl><a NAME="DebuggerInterfacePython2.remoteCapabilities" ID="DebuggerInterfacePython2.remoteCapabilities"></a> |
403 <h4>DebuggerInterfacePython.remoteCapabilities</h4> | 416 <h4>DebuggerInterfacePython2.remoteCapabilities</h4> |
404 <b>remoteCapabilities</b>(<i></i>) | 417 <b>remoteCapabilities</b>(<i></i>) |
405 <p> | 418 <p> |
406 Public slot to get the debug clients capabilities. | 419 Public slot to get the debug clients capabilities. |
407 </p><a NAME="DebuggerInterfacePython.remoteClientSetFilter" ID="DebuggerInterfacePython.remoteClientSetFilter"></a> | 420 </p><a NAME="DebuggerInterfacePython2.remoteClientSetFilter" ID="DebuggerInterfacePython2.remoteClientSetFilter"></a> |
408 <h4>DebuggerInterfacePython.remoteClientSetFilter</h4> | 421 <h4>DebuggerInterfacePython2.remoteClientSetFilter</h4> |
409 <b>remoteClientSetFilter</b>(<i>scope, filter</i>) | 422 <b>remoteClientSetFilter</b>(<i>scope, filter</i>) |
410 <p> | 423 <p> |
411 Public method to set a variables filter list. | 424 Public method to set a variables filter list. |
412 </p><dl> | 425 </p><dl> |
413 <dt><i>scope</i></dt> | 426 <dt><i>scope</i></dt> |
415 the scope of the variables (0 = local, 1 = global) | 428 the scope of the variables (0 = local, 1 = global) |
416 </dd><dt><i>filter</i></dt> | 429 </dd><dt><i>filter</i></dt> |
417 <dd> | 430 <dd> |
418 regexp string for variable names to filter out (string) | 431 regexp string for variable names to filter out (string) |
419 </dd> | 432 </dd> |
420 </dl><a NAME="DebuggerInterfacePython.remoteClientVariable" ID="DebuggerInterfacePython.remoteClientVariable"></a> | 433 </dl><a NAME="DebuggerInterfacePython2.remoteClientVariable" ID="DebuggerInterfacePython2.remoteClientVariable"></a> |
421 <h4>DebuggerInterfacePython.remoteClientVariable</h4> | 434 <h4>DebuggerInterfacePython2.remoteClientVariable</h4> |
422 <b>remoteClientVariable</b>(<i>scope, filter, var, framenr=0</i>) | 435 <b>remoteClientVariable</b>(<i>scope, filter, var, framenr=0</i>) |
423 <p> | 436 <p> |
424 Public method to request the variables of the debugged program. | 437 Public method to request the variables of the debugged program. |
425 </p><dl> | 438 </p><dl> |
426 <dt><i>scope</i></dt> | 439 <dt><i>scope</i></dt> |
434 list encoded name of variable to retrieve (string) | 447 list encoded name of variable to retrieve (string) |
435 </dd><dt><i>framenr</i></dt> | 448 </dd><dt><i>framenr</i></dt> |
436 <dd> | 449 <dd> |
437 framenumber of the variables to retrieve (int) | 450 framenumber of the variables to retrieve (int) |
438 </dd> | 451 </dd> |
439 </dl><a NAME="DebuggerInterfacePython.remoteClientVariables" ID="DebuggerInterfacePython.remoteClientVariables"></a> | 452 </dl><a NAME="DebuggerInterfacePython2.remoteClientVariables" ID="DebuggerInterfacePython2.remoteClientVariables"></a> |
440 <h4>DebuggerInterfacePython.remoteClientVariables</h4> | 453 <h4>DebuggerInterfacePython2.remoteClientVariables</h4> |
441 <b>remoteClientVariables</b>(<i>scope, filter, framenr=0</i>) | 454 <b>remoteClientVariables</b>(<i>scope, filter, framenr=0</i>) |
442 <p> | 455 <p> |
443 Public method to request the variables of the debugged program. | 456 Public method to request the variables of the debugged program. |
444 </p><dl> | 457 </p><dl> |
445 <dt><i>scope</i></dt> | 458 <dt><i>scope</i></dt> |
450 list of variable types to filter out (list of int) | 463 list of variable types to filter out (list of int) |
451 </dd><dt><i>framenr</i></dt> | 464 </dd><dt><i>framenr</i></dt> |
452 <dd> | 465 <dd> |
453 framenumber of the variables to retrieve (int) | 466 framenumber of the variables to retrieve (int) |
454 </dd> | 467 </dd> |
455 </dl><a NAME="DebuggerInterfacePython.remoteCompletion" ID="DebuggerInterfacePython.remoteCompletion"></a> | 468 </dl><a NAME="DebuggerInterfacePython2.remoteCompletion" ID="DebuggerInterfacePython2.remoteCompletion"></a> |
456 <h4>DebuggerInterfacePython.remoteCompletion</h4> | 469 <h4>DebuggerInterfacePython2.remoteCompletion</h4> |
457 <b>remoteCompletion</b>(<i>text</i>) | 470 <b>remoteCompletion</b>(<i>text</i>) |
458 <p> | 471 <p> |
459 Public slot to get the a list of possible commandline completions | 472 Public slot to get the a list of possible commandline completions |
460 from the remote client. | 473 from the remote client. |
461 </p><dl> | 474 </p><dl> |
462 <dt><i>text</i></dt> | 475 <dt><i>text</i></dt> |
463 <dd> | 476 <dd> |
464 the text to be completed (string) | 477 the text to be completed (string) |
465 </dd> | 478 </dd> |
466 </dl><a NAME="DebuggerInterfacePython.remoteContinue" ID="DebuggerInterfacePython.remoteContinue"></a> | 479 </dl><a NAME="DebuggerInterfacePython2.remoteContinue" ID="DebuggerInterfacePython2.remoteContinue"></a> |
467 <h4>DebuggerInterfacePython.remoteContinue</h4> | 480 <h4>DebuggerInterfacePython2.remoteContinue</h4> |
468 <b>remoteContinue</b>(<i>special=False</i>) | 481 <b>remoteContinue</b>(<i>special=False</i>) |
469 <p> | 482 <p> |
470 Public method to continue the debugged program. | 483 Public method to continue the debugged program. |
471 </p><dl> | 484 </p><dl> |
472 <dt><i>special</i></dt> | 485 <dt><i>special</i></dt> |
473 <dd> | 486 <dd> |
474 flag indicating a special continue operation (boolean) | 487 flag indicating a special continue operation (boolean) |
475 </dd> | 488 </dd> |
476 </dl><a NAME="DebuggerInterfacePython.remoteCoverage" ID="DebuggerInterfacePython.remoteCoverage"></a> | 489 </dl><a NAME="DebuggerInterfacePython2.remoteCoverage" ID="DebuggerInterfacePython2.remoteCoverage"></a> |
477 <h4>DebuggerInterfacePython.remoteCoverage</h4> | 490 <h4>DebuggerInterfacePython2.remoteCoverage</h4> |
478 <b>remoteCoverage</b>(<i>fn, argv, wd, erase=False</i>) | 491 <b>remoteCoverage</b>(<i>fn, argv, wd, erase=False</i>) |
479 <p> | 492 <p> |
480 Public method to load a new program to collect coverage data. | 493 Public method to load a new program to collect coverage data. |
481 </p><dl> | 494 </p><dl> |
482 <dt><i>fn</i></dt> | 495 <dt><i>fn</i></dt> |
491 </dd><dt><i>erase=</i></dt> | 504 </dd><dt><i>erase=</i></dt> |
492 <dd> | 505 <dd> |
493 flag indicating that coverage info should be | 506 flag indicating that coverage info should be |
494 cleared first (boolean) | 507 cleared first (boolean) |
495 </dd> | 508 </dd> |
496 </dl><a NAME="DebuggerInterfacePython.remoteEnvironment" ID="DebuggerInterfacePython.remoteEnvironment"></a> | 509 </dl><a NAME="DebuggerInterfacePython2.remoteEnvironment" ID="DebuggerInterfacePython2.remoteEnvironment"></a> |
497 <h4>DebuggerInterfacePython.remoteEnvironment</h4> | 510 <h4>DebuggerInterfacePython2.remoteEnvironment</h4> |
498 <b>remoteEnvironment</b>(<i>env</i>) | 511 <b>remoteEnvironment</b>(<i>env</i>) |
499 <p> | 512 <p> |
500 Public method to set the environment for a program to debug, run, ... | 513 Public method to set the environment for a program to debug, run, ... |
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="DebuggerInterfacePython.remoteEval" ID="DebuggerInterfacePython.remoteEval"></a> | 519 </dl><a NAME="DebuggerInterfacePython2.remoteLoad" ID="DebuggerInterfacePython2.remoteLoad"></a> |
507 <h4>DebuggerInterfacePython.remoteEval</h4> | 520 <h4>DebuggerInterfacePython2.remoteLoad</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="DebuggerInterfacePython.remoteExec" ID="DebuggerInterfacePython.remoteExec"></a> | |
518 <h4>DebuggerInterfacePython.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="DebuggerInterfacePython.remoteLoad" ID="DebuggerInterfacePython.remoteLoad"></a> | |
529 <h4>DebuggerInterfacePython.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. |
533 </p><dl> | 524 </p><dl> |
534 <dt><i>fn</i></dt> | 525 <dt><i>fn</i></dt> |
554 </dd><dt><i>forkChild=</i></dt> | 545 </dd><dt><i>forkChild=</i></dt> |
555 <dd> | 546 <dd> |
556 flag indicating to debug the child after forking | 547 flag indicating to debug the child after forking |
557 (boolean) | 548 (boolean) |
558 </dd> | 549 </dd> |
559 </dl><a NAME="DebuggerInterfacePython.remoteProfile" ID="DebuggerInterfacePython.remoteProfile"></a> | 550 </dl><a NAME="DebuggerInterfacePython2.remoteProfile" ID="DebuggerInterfacePython2.remoteProfile"></a> |
560 <h4>DebuggerInterfacePython.remoteProfile</h4> | 551 <h4>DebuggerInterfacePython2.remoteProfile</h4> |
561 <b>remoteProfile</b>(<i>fn, argv, wd, erase=False</i>) | 552 <b>remoteProfile</b>(<i>fn, argv, wd, erase=False</i>) |
562 <p> | 553 <p> |
563 Public method to load a new program to collect profiling data. | 554 Public method to load a new program to collect profiling data. |
564 </p><dl> | 555 </p><dl> |
565 <dt><i>fn</i></dt> | 556 <dt><i>fn</i></dt> |
574 </dd><dt><i>erase=</i></dt> | 565 </dd><dt><i>erase=</i></dt> |
575 <dd> | 566 <dd> |
576 flag indicating that timing info should be cleared | 567 flag indicating that timing info should be cleared |
577 first (boolean) | 568 first (boolean) |
578 </dd> | 569 </dd> |
579 </dl><a NAME="DebuggerInterfacePython.remoteRawInput" ID="DebuggerInterfacePython.remoteRawInput"></a> | 570 </dl><a NAME="DebuggerInterfacePython2.remoteRawInput" ID="DebuggerInterfacePython2.remoteRawInput"></a> |
580 <h4>DebuggerInterfacePython.remoteRawInput</h4> | 571 <h4>DebuggerInterfacePython2.remoteRawInput</h4> |
581 <b>remoteRawInput</b>(<i>s</i>) | 572 <b>remoteRawInput</b>(<i>s</i>) |
582 <p> | 573 <p> |
583 Public method to send the raw input to the debugged program. | 574 Public method to send the raw input to the debugged program. |
584 </p><dl> | 575 </p><dl> |
585 <dt><i>s</i></dt> | 576 <dt><i>s</i></dt> |
586 <dd> | 577 <dd> |
587 the raw input (string) | 578 the raw input (string) |
588 </dd> | 579 </dd> |
589 </dl><a NAME="DebuggerInterfacePython.remoteRun" ID="DebuggerInterfacePython.remoteRun"></a> | 580 </dl><a NAME="DebuggerInterfacePython2.remoteRun" ID="DebuggerInterfacePython2.remoteRun"></a> |
590 <h4>DebuggerInterfacePython.remoteRun</h4> | 581 <h4>DebuggerInterfacePython2.remoteRun</h4> |
591 <b>remoteRun</b>(<i>fn, argv, wd, autoFork=False, forkChild=False</i>) | 582 <b>remoteRun</b>(<i>fn, argv, wd, autoFork=False, forkChild=False</i>) |
592 <p> | 583 <p> |
593 Public method to load a new program to run. | 584 Public method to load a new program to run. |
594 </p><dl> | 585 </p><dl> |
595 <dt><i>fn</i></dt> | 586 <dt><i>fn</i></dt> |
607 </dd><dt><i>forkChild=</i></dt> | 598 </dd><dt><i>forkChild=</i></dt> |
608 <dd> | 599 <dd> |
609 flag indicating to debug the child after forking | 600 flag indicating to debug the child after forking |
610 (boolean) | 601 (boolean) |
611 </dd> | 602 </dd> |
612 </dl><a NAME="DebuggerInterfacePython.remoteSetThread" ID="DebuggerInterfacePython.remoteSetThread"></a> | 603 </dl><a NAME="DebuggerInterfacePython2.remoteSetThread" ID="DebuggerInterfacePython2.remoteSetThread"></a> |
613 <h4>DebuggerInterfacePython.remoteSetThread</h4> | 604 <h4>DebuggerInterfacePython2.remoteSetThread</h4> |
614 <b>remoteSetThread</b>(<i>tid</i>) | 605 <b>remoteSetThread</b>(<i>tid</i>) |
615 <p> | 606 <p> |
616 Public method to request to set the given thread as current thread. | 607 Public method to request to set the given thread as current thread. |
617 </p><dl> | 608 </p><dl> |
618 <dt><i>tid</i></dt> | 609 <dt><i>tid</i></dt> |
619 <dd> | 610 <dd> |
620 id of the thread (integer) | 611 id of the thread (integer) |
621 </dd> | 612 </dd> |
622 </dl><a NAME="DebuggerInterfacePython.remoteStatement" ID="DebuggerInterfacePython.remoteStatement"></a> | 613 </dl><a NAME="DebuggerInterfacePython2.remoteStatement" ID="DebuggerInterfacePython2.remoteStatement"></a> |
623 <h4>DebuggerInterfacePython.remoteStatement</h4> | 614 <h4>DebuggerInterfacePython2.remoteStatement</h4> |
624 <b>remoteStatement</b>(<i>stmt</i>) | 615 <b>remoteStatement</b>(<i>stmt</i>) |
625 <p> | 616 <p> |
626 Public method to execute a Python statement. | 617 Public method to execute a Python statement. |
627 </p><dl> | 618 </p><dl> |
628 <dt><i>stmt</i></dt> | 619 <dt><i>stmt</i></dt> |
629 <dd> | 620 <dd> |
630 the Python statement to execute (string). It | 621 the Python statement to execute (string). It |
631 should not have a trailing newline. | 622 should not have a trailing newline. |
632 </dd> | 623 </dd> |
633 </dl><a NAME="DebuggerInterfacePython.remoteStep" ID="DebuggerInterfacePython.remoteStep"></a> | 624 </dl><a NAME="DebuggerInterfacePython2.remoteStep" ID="DebuggerInterfacePython2.remoteStep"></a> |
634 <h4>DebuggerInterfacePython.remoteStep</h4> | 625 <h4>DebuggerInterfacePython2.remoteStep</h4> |
635 <b>remoteStep</b>(<i></i>) | 626 <b>remoteStep</b>(<i></i>) |
636 <p> | 627 <p> |
637 Public method to single step the debugged program. | 628 Public method to single step the debugged program. |
638 </p><a NAME="DebuggerInterfacePython.remoteStepOut" ID="DebuggerInterfacePython.remoteStepOut"></a> | 629 </p><a NAME="DebuggerInterfacePython2.remoteStepOut" ID="DebuggerInterfacePython2.remoteStepOut"></a> |
639 <h4>DebuggerInterfacePython.remoteStepOut</h4> | 630 <h4>DebuggerInterfacePython2.remoteStepOut</h4> |
640 <b>remoteStepOut</b>(<i></i>) | 631 <b>remoteStepOut</b>(<i></i>) |
641 <p> | 632 <p> |
642 Public method to step out the debugged program. | 633 Public method to step out the debugged program. |
643 </p><a NAME="DebuggerInterfacePython.remoteStepOver" ID="DebuggerInterfacePython.remoteStepOver"></a> | 634 </p><a NAME="DebuggerInterfacePython2.remoteStepOver" ID="DebuggerInterfacePython2.remoteStepOver"></a> |
644 <h4>DebuggerInterfacePython.remoteStepOver</h4> | 635 <h4>DebuggerInterfacePython2.remoteStepOver</h4> |
645 <b>remoteStepOver</b>(<i></i>) | 636 <b>remoteStepOver</b>(<i></i>) |
646 <p> | 637 <p> |
647 Public method to step over the debugged program. | 638 Public method to step over the debugged program. |
648 </p><a NAME="DebuggerInterfacePython.remoteStepQuit" ID="DebuggerInterfacePython.remoteStepQuit"></a> | 639 </p><a NAME="DebuggerInterfacePython2.remoteStepQuit" ID="DebuggerInterfacePython2.remoteStepQuit"></a> |
649 <h4>DebuggerInterfacePython.remoteStepQuit</h4> | 640 <h4>DebuggerInterfacePython2.remoteStepQuit</h4> |
650 <b>remoteStepQuit</b>(<i></i>) | 641 <b>remoteStepQuit</b>(<i></i>) |
651 <p> | 642 <p> |
652 Public method to stop the debugged program. | 643 Public method to stop the debugged program. |
653 </p><a NAME="DebuggerInterfacePython.remoteThreadList" ID="DebuggerInterfacePython.remoteThreadList"></a> | 644 </p><a NAME="DebuggerInterfacePython2.remoteThreadList" ID="DebuggerInterfacePython2.remoteThreadList"></a> |
654 <h4>DebuggerInterfacePython.remoteThreadList</h4> | 645 <h4>DebuggerInterfacePython2.remoteThreadList</h4> |
655 <b>remoteThreadList</b>(<i></i>) | 646 <b>remoteThreadList</b>(<i></i>) |
656 <p> | 647 <p> |
657 Public method to request the list of threads from the client. | 648 Public method to request the list of threads from the client. |
658 </p><a NAME="DebuggerInterfacePython.remoteUTPrepare" ID="DebuggerInterfacePython.remoteUTPrepare"></a> | 649 </p><a NAME="DebuggerInterfacePython2.remoteUTPrepare" ID="DebuggerInterfacePython2.remoteUTPrepare"></a> |
659 <h4>DebuggerInterfacePython.remoteUTPrepare</h4> | 650 <h4>DebuggerInterfacePython2.remoteUTPrepare</h4> |
660 <b>remoteUTPrepare</b>(<i>fn, tn, tfn, failed, cov, covname, coverase</i>) | 651 <b>remoteUTPrepare</b>(<i>fn, tn, tfn, failed, cov, covname, coverase</i>) |
661 <p> | 652 <p> |
662 Public method to prepare a new unittest run. | 653 Public method to prepare a new unittest run. |
663 </p><dl> | 654 </p><dl> |
664 <dt><i>fn</i></dt> | 655 <dt><i>fn</i></dt> |
685 </dd><dt><i>coverase</i></dt> | 676 </dd><dt><i>coverase</i></dt> |
686 <dd> | 677 <dd> |
687 flag indicating erasure of coverage data is requested | 678 flag indicating erasure of coverage data is requested |
688 (boolean) | 679 (boolean) |
689 </dd> | 680 </dd> |
690 </dl><a NAME="DebuggerInterfacePython.remoteUTRun" ID="DebuggerInterfacePython.remoteUTRun"></a> | 681 </dl><a NAME="DebuggerInterfacePython2.remoteUTRun" ID="DebuggerInterfacePython2.remoteUTRun"></a> |
691 <h4>DebuggerInterfacePython.remoteUTRun</h4> | 682 <h4>DebuggerInterfacePython2.remoteUTRun</h4> |
692 <b>remoteUTRun</b>(<i></i>) | 683 <b>remoteUTRun</b>(<i></i>) |
693 <p> | 684 <p> |
694 Public method to start a unittest run. | 685 Public method to start a unittest run. |
695 </p><a NAME="DebuggerInterfacePython.remoteUTStop" ID="DebuggerInterfacePython.remoteUTStop"></a> | 686 </p><a NAME="DebuggerInterfacePython2.remoteUTStop" ID="DebuggerInterfacePython2.remoteUTStop"></a> |
696 <h4>DebuggerInterfacePython.remoteUTStop</h4> | 687 <h4>DebuggerInterfacePython2.remoteUTStop</h4> |
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="DebuggerInterfacePython.remoteWatchpoint" ID="DebuggerInterfacePython.remoteWatchpoint"></a> | 691 </p><a NAME="DebuggerInterfacePython2.remoteWatchpoint" ID="DebuggerInterfacePython2.remoteWatchpoint"></a> |
701 <h4>DebuggerInterfacePython.remoteWatchpoint</h4> | 692 <h4>DebuggerInterfacePython2.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> |
715 flag indicating a temporary watch expression (boolean) | 706 flag indicating a temporary watch expression (boolean) |
716 </dd> | 707 </dd> |
717 </dl><a NAME="DebuggerInterfacePython.remoteWatchpointEnable" ID="DebuggerInterfacePython.remoteWatchpointEnable"></a> | 708 </dl><a NAME="DebuggerInterfacePython2.remoteWatchpointEnable" ID="DebuggerInterfacePython2.remoteWatchpointEnable"></a> |
718 <h4>DebuggerInterfacePython.remoteWatchpointEnable</h4> | 709 <h4>DebuggerInterfacePython2.remoteWatchpointEnable</h4> |
719 <b>remoteWatchpointEnable</b>(<i>cond, enable</i>) | 710 <b>remoteWatchpointEnable</b>(<i>cond, enable</i>) |
720 <p> | 711 <p> |
721 Public method to enable or disable a watch expression. | 712 Public method to enable or disable a watch expression. |
722 </p><dl> | 713 </p><dl> |
723 <dt><i>cond</i></dt> | 714 <dt><i>cond</i></dt> |
726 </dd><dt><i>enable</i></dt> | 717 </dd><dt><i>enable</i></dt> |
727 <dd> | 718 <dd> |
728 flag indicating enabling or disabling a watch expression | 719 flag indicating enabling or disabling a watch expression |
729 (boolean) | 720 (boolean) |
730 </dd> | 721 </dd> |
731 </dl><a NAME="DebuggerInterfacePython.remoteWatchpointIgnore" ID="DebuggerInterfacePython.remoteWatchpointIgnore"></a> | 722 </dl><a NAME="DebuggerInterfacePython2.remoteWatchpointIgnore" ID="DebuggerInterfacePython2.remoteWatchpointIgnore"></a> |
732 <h4>DebuggerInterfacePython.remoteWatchpointIgnore</h4> | 723 <h4>DebuggerInterfacePython2.remoteWatchpointIgnore</h4> |
733 <b>remoteWatchpointIgnore</b>(<i>cond, count</i>) | 724 <b>remoteWatchpointIgnore</b>(<i>cond, count</i>) |
734 <p> | 725 <p> |
735 Public method to ignore a watch expression the next couple of | 726 Public method to ignore a watch expression the next couple of |
736 occurrences. | 727 occurrences. |
737 </p><dl> | 728 </p><dl> |
740 expression of the watch expression (string) | 731 expression of the watch expression (string) |
741 </dd><dt><i>count</i></dt> | 732 </dd><dt><i>count</i></dt> |
742 <dd> | 733 <dd> |
743 number of occurrences to ignore (int) | 734 number of occurrences to ignore (int) |
744 </dd> | 735 </dd> |
745 </dl><a NAME="DebuggerInterfacePython.setCallTraceEnabled" ID="DebuggerInterfacePython.setCallTraceEnabled"></a> | 736 </dl><a NAME="DebuggerInterfacePython2.setCallTraceEnabled" ID="DebuggerInterfacePython2.setCallTraceEnabled"></a> |
746 <h4>DebuggerInterfacePython.setCallTraceEnabled</h4> | 737 <h4>DebuggerInterfacePython2.setCallTraceEnabled</h4> |
747 <b>setCallTraceEnabled</b>(<i>on</i>) | 738 <b>setCallTraceEnabled</b>(<i>on</i>) |
748 <p> | 739 <p> |
749 Public method to set the call trace state. | 740 Public method to set the call trace state. |
750 </p><dl> | 741 </p><dl> |
751 <dt><i>on</i></dt> | 742 <dt><i>on</i></dt> |
752 <dd> | 743 <dd> |
753 flag indicating to enable the call trace function (boolean) | 744 flag indicating to enable the call trace function (boolean) |
754 </dd> | 745 </dd> |
755 </dl><a NAME="DebuggerInterfacePython.shutdown" ID="DebuggerInterfacePython.shutdown"></a> | 746 </dl><a NAME="DebuggerInterfacePython2.shutdown" ID="DebuggerInterfacePython2.shutdown"></a> |
756 <h4>DebuggerInterfacePython.shutdown</h4> | 747 <h4>DebuggerInterfacePython2.shutdown</h4> |
757 <b>shutdown</b>(<i></i>) | 748 <b>shutdown</b>(<i></i>) |
758 <p> | 749 <p> |
759 Public method to cleanly shut down. | 750 Public method to cleanly shut down. |
760 </p><p> | 751 </p><p> |
761 It closes our socket and shuts down | 752 It closes our socket and shuts down |
762 the debug client. (Needed on Win OS) | 753 the debug client. (Needed on Win OS) |
763 </p><a NAME="DebuggerInterfacePython.startRemote" ID="DebuggerInterfacePython.startRemote"></a> | 754 </p><a NAME="DebuggerInterfacePython2.startRemote" ID="DebuggerInterfacePython2.startRemote"></a> |
764 <h4>DebuggerInterfacePython.startRemote</h4> | 755 <h4>DebuggerInterfacePython2.startRemote</h4> |
765 <b>startRemote</b>(<i>port, runInConsole</i>) | 756 <b>startRemote</b>(<i>port, runInConsole</i>) |
766 <p> | 757 <p> |
767 Public method to start a remote Python interpreter. | 758 Public method to start a remote Python interpreter. |
768 </p><dl> | 759 </p><dl> |
769 <dt><i>port</i></dt> | 760 <dt><i>port</i></dt> |
779 <dd> | 770 <dd> |
780 client process object (QProcess), a flag to indicate | 771 client process object (QProcess), a flag to indicate |
781 a network connection (boolean) and the name of the interpreter | 772 a network connection (boolean) and the name of the interpreter |
782 in case of a local execution (string) | 773 in case of a local execution (string) |
783 </dd> | 774 </dd> |
784 </dl><a NAME="DebuggerInterfacePython.startRemoteForProject" ID="DebuggerInterfacePython.startRemoteForProject"></a> | 775 </dl><a NAME="DebuggerInterfacePython2.startRemoteForProject" ID="DebuggerInterfacePython2.startRemoteForProject"></a> |
785 <h4>DebuggerInterfacePython.startRemoteForProject</h4> | 776 <h4>DebuggerInterfacePython2.startRemoteForProject</h4> |
786 <b>startRemoteForProject</b>(<i>port, runInConsole</i>) | 777 <b>startRemoteForProject</b>(<i>port, runInConsole</i>) |
787 <p> | 778 <p> |
788 Public method to start a remote Python interpreter for a project. | 779 Public method to start a remote Python interpreter for a project. |
789 </p><dl> | 780 </p><dl> |
790 <dt><i>port</i></dt> | 781 <dt><i>port</i></dt> |
803 in case of a local execution (string) | 794 in case of a local execution (string) |
804 </dd> | 795 </dd> |
805 </dl> | 796 </dl> |
806 <div align="right"><a href="#top">Up</a></div> | 797 <div align="right"><a href="#top">Up</a></div> |
807 <hr /><hr /> | 798 <hr /><hr /> |
808 <a NAME="createDebuggerInterfacePython" ID="createDebuggerInterfacePython"></a> | 799 <a NAME="createDebuggerInterfacePython2" ID="createDebuggerInterfacePython2"></a> |
809 <h2>createDebuggerInterfacePython</h2> | 800 <h2>createDebuggerInterfacePython2</h2> |
810 <b>createDebuggerInterfacePython</b>(<i>debugServer, passive</i>) | 801 <b>createDebuggerInterfacePython2</b>(<i>debugServer, passive</i>) |
811 <p> | 802 <p> |
812 Module function to create a debugger interface instance. | 803 Module function to create a debugger interface instance. |
813 </p><p> | 804 </p><p> |
814 | 805 |
815 </p><dl> | 806 </p><dl> |