Sat, 26 Apr 2025 12:34:32 +0200
MicroPython
- Added a configuration option to disable the support for the no longer produced Pimoroni Pico Wireless Pack.
<!DOCTYPE html> <html><head> <title>eric7.DebugClients.Python.eric7dbgstub</title> <meta charset="UTF-8"> <link rel="stylesheet" href="styles.css"> </head> <body> <a NAME="top" ID="top"></a> <h1>eric7.DebugClients.Python.eric7dbgstub</h1> <p> Module implementing a debugger stub for remote debugging. </p> <h3>Global Attributes</h3> <table> <tr><td>__scriptname</td></tr> <tr><td>debugger</td></tr> <tr><td>ericpath</td></tr> </table> <h3>Classes</h3> <table> <tr><td>None</td></tr> </table> <h3>Functions</h3> <table> <tr> <td><a href="#initDebugger">initDebugger</a></td> <td>Module function to initialize a debugger for remote debugging.</td> </tr> <tr> <td><a href="#runcall">runcall</a></td> <td>Module function mimicing the Pdb interface.</td> </tr> <tr> <td><a href="#setScriptname">setScriptname</a></td> <td>Module function to set the script name to be reported back to the IDE.</td> </tr> <tr> <td><a href="#startDebugger">startDebugger</a></td> <td>Module function used to start the remote debugger.</td> </tr> </table> <hr /> <hr /> <a NAME="initDebugger" ID="initDebugger"></a> <h2>initDebugger</h2> <b>initDebugger</b>(<i>kind="standard"</i>) <p> Module function to initialize a debugger for remote debugging. </p> <dl> <dt><i>kind</i> (str)</dt> <dd> type of debugger ("standard" or "threads") </dd> </dl> <dl> <dt>Return:</dt> <dd> flag indicating success </dd> </dl> <dl> <dt>Return Type:</dt> <dd> bool </dd> </dl> <dl> <dt>Raises <b>ValueError</b>:</dt> <dd> raised to indicate a wrong debugger kind </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> <a NAME="runcall" ID="runcall"></a> <h2>runcall</h2> <b>runcall</b>(<i>func, *args</i>) <p> Module function mimicing the Pdb interface. </p> <dl> <dt><i>func</i> (function)</dt> <dd> function to be called </dd> <dt><i>*args</i> (list of Any)</dt> <dd> arguments being passed to func </dd> </dl> <dl> <dt>Return:</dt> <dd> the function result </dd> </dl> <dl> <dt>Return Type:</dt> <dd> Any </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> <a NAME="setScriptname" ID="setScriptname"></a> <h2>setScriptname</h2> <b>setScriptname</b>(<i>name</i>) <p> Module function to set the script name to be reported back to the IDE. </p> <dl> <dt><i>name</i> (str)</dt> <dd> absolute path name of the script </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> <a NAME="startDebugger" ID="startDebugger"></a> <h2>startDebugger</h2> <b>startDebugger</b>(<i>enableTrace=True, exceptions=True, tracePython=False, redirect=True</i>) <p> Module function used to start the remote debugger. </p> <dl> <dt><i>enableTrace</i> (bool)</dt> <dd> flag to enable the tracing function </dd> <dt><i>exceptions</i> (bool)</dt> <dd> flag to enable exception reporting of the IDE </dd> <dt><i>tracePython</i> (bool)</dt> <dd> flag to enable tracing into the Python library </dd> <dt><i>redirect</i> (bool)</dt> <dd> flag indicating redirection of stdin, stdout and stderr </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> </body></html>