246 <div align="right"><a href="#top">Up</a></div> |
246 <div align="right"><a href="#top">Up</a></div> |
247 <hr /> |
247 <hr /> |
248 <hr /> |
248 <hr /> |
249 <a NAME="isPythonProgram" ID="isPythonProgram"></a> |
249 <a NAME="isPythonProgram" ID="isPythonProgram"></a> |
250 <h2>isPythonProgram</h2> |
250 <h2>isPythonProgram</h2> |
251 <b>isPythonProgram</b>(<i>program</i>) |
251 <b>isPythonProgram</b>(<i>program, withPath=False</i>) |
252 <p> |
252 <p> |
253 Function to check, if the given program is a Python interpreter or |
253 Function to check, if the given program is a Python interpreter or |
254 program. |
254 program. |
255 </p> |
255 </p> |
256 |
256 |
257 <dl> |
257 <dl> |
258 |
258 |
259 <dt><i>program</i> (str)</dt> |
259 <dt><i>program</i> (str)</dt> |
260 <dd> |
260 <dd> |
261 program to be checked |
261 program to be checked |
|
262 </dd> |
|
263 <dt><i>withPath</i> (bool (optional))</dt> |
|
264 <dd> |
|
265 flag indicating to search the program in the executable |
|
266 search path (defaults to False) |
262 </dd> |
267 </dd> |
263 </dl> |
268 </dl> |
264 <dl> |
269 <dl> |
265 <dt>Return:</dt> |
270 <dt>Return:</dt> |
266 <dd> |
271 <dd> |
331 <div align="right"><a href="#top">Up</a></div> |
336 <div align="right"><a href="#top">Up</a></div> |
332 <hr /> |
337 <hr /> |
333 <hr /> |
338 <hr /> |
334 <a NAME="patchArguments" ID="patchArguments"></a> |
339 <a NAME="patchArguments" ID="patchArguments"></a> |
335 <h2>patchArguments</h2> |
340 <h2>patchArguments</h2> |
336 <b>patchArguments</b>(<i>debugClient, arguments, noRedirect=False</i>) |
341 <b>patchArguments</b>(<i>debugClient, arguments, noRedirect=False, isPythonProg=False</i>) |
337 <p> |
342 <p> |
338 Function to patch the arguments given to start a program in order to |
343 Function to patch the arguments given to start a program in order to |
339 execute it in our debugger. |
344 execute it in our debugger. |
340 </p> |
345 </p> |
341 |
346 |
347 </dd> |
352 </dd> |
348 <dt><i>arguments</i> (list of str)</dt> |
353 <dt><i>arguments</i> (list of str)</dt> |
349 <dd> |
354 <dd> |
350 list of program arguments |
355 list of program arguments |
351 </dd> |
356 </dd> |
352 <dt><i>noRedirect</i> (bool)</dt> |
357 <dt><i>noRedirect</i> (bool (optional))</dt> |
353 <dd> |
358 <dd> |
354 flag indicating to not redirect stdin and stdout |
359 flag indicating to not redirect stdin and stdout |
|
360 (defaults to False) |
|
361 </dd> |
|
362 <dt><i>isPythonProg</i> (bool (optional))</dt> |
|
363 <dd> |
|
364 flag indicating a Python script (defaults to False) |
355 </dd> |
365 </dd> |
356 </dl> |
366 </dl> |
357 <dl> |
367 <dl> |
358 <dt>Return:</dt> |
368 <dt>Return:</dt> |
359 <dd> |
369 <dd> |