|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.DebugClients.Python.SubprocessExtension</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>eric7.DebugClients.Python.SubprocessExtension</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing a function to patch subprocess.Popen to support debugging |
|
13 of the process. |
|
14 </p> |
|
15 <h3>Global Attributes</h3> |
|
16 |
|
17 <table> |
|
18 <tr><td>_debugClient</td></tr> |
|
19 </table> |
|
20 <h3>Classes</h3> |
|
21 |
|
22 <table> |
|
23 |
|
24 <tr> |
|
25 <td><a href="#PopenWrapper">PopenWrapper</a></td> |
|
26 <td>Wrapper class for subprocess.Popen.</td> |
|
27 </tr> |
|
28 </table> |
|
29 <h3>Functions</h3> |
|
30 |
|
31 <table> |
|
32 |
|
33 <tr> |
|
34 <td><a href="#patchSubprocess">patchSubprocess</a></td> |
|
35 <td>Function to patch the subprocess module.</td> |
|
36 </tr> |
|
37 </table> |
|
38 <hr /> |
|
39 <hr /> |
|
40 <a NAME="PopenWrapper" ID="PopenWrapper"></a> |
|
41 <h2>PopenWrapper</h2> |
|
42 |
|
43 <p> |
|
44 Wrapper class for subprocess.Popen. |
|
45 </p> |
|
46 <h3>Derived from</h3> |
|
47 module.Popen |
|
48 <h3>Class Attributes</h3> |
|
49 |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Class Methods</h3> |
|
54 |
|
55 <table> |
|
56 <tr><td>None</td></tr> |
|
57 </table> |
|
58 <h3>Methods</h3> |
|
59 |
|
60 <table> |
|
61 |
|
62 <tr> |
|
63 <td><a href="#PopenWrapper.__init__">PopenWrapper</a></td> |
|
64 <td>Constructor</td> |
|
65 </tr> |
|
66 </table> |
|
67 <h3>Static Methods</h3> |
|
68 |
|
69 <table> |
|
70 <tr><td>None</td></tr> |
|
71 </table> |
|
72 |
|
73 <a NAME="PopenWrapper.__init__" ID="PopenWrapper.__init__"></a> |
|
74 <h4>PopenWrapper (Constructor)</h4> |
|
75 <b>PopenWrapper</b>(<i>arguments, *args, **kwargs</i>) |
|
76 |
|
77 <p> |
|
78 Constructor |
|
79 </p> |
|
80 <dl> |
|
81 |
|
82 <dt><i>arguments</i> (list of str or str)</dt> |
|
83 <dd> |
|
84 command line arguments for the new process |
|
85 </dd> |
|
86 <dt><i>args</i> (list)</dt> |
|
87 <dd> |
|
88 constructor arguments of Popen |
|
89 </dd> |
|
90 <dt><i>kwargs</i> (dict)</dt> |
|
91 <dd> |
|
92 constructor keyword only arguments of Popen |
|
93 </dd> |
|
94 </dl> |
|
95 <div align="right"><a href="#top">Up</a></div> |
|
96 <hr /> |
|
97 <hr /> |
|
98 <a NAME="patchSubprocess" ID="patchSubprocess"></a> |
|
99 <h2>patchSubprocess</h2> |
|
100 <b>patchSubprocess</b>(<i>module, debugClient</i>) |
|
101 |
|
102 <p> |
|
103 Function to patch the subprocess module. |
|
104 </p> |
|
105 <dl> |
|
106 |
|
107 <dt><i>module</i> (module)</dt> |
|
108 <dd> |
|
109 reference to the imported module to be patched |
|
110 </dd> |
|
111 <dt><i>debugClient</i> (DebugClient)</dt> |
|
112 <dd> |
|
113 reference to the debug client object |
|
114 </dd> |
|
115 </dl> |
|
116 <div align="right"><a href="#top">Up</a></div> |
|
117 <hr /> |
|
118 </body></html> |