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