|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.DebugClients.Python.MultiprocessingExtension</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.MultiprocessingExtension</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing a function to patch multiprocessing.Process to support |
|
13 debugging of the process. |
|
14 </p> |
|
15 <h3>Global Attributes</h3> |
|
16 |
|
17 <table> |
|
18 <tr><td>_debugClient</td></tr><tr><td>_originalBootstrap</td></tr><tr><td>_originalProcess</td></tr> |
|
19 </table> |
|
20 <h3>Classes</h3> |
|
21 |
|
22 <table> |
|
23 |
|
24 <tr> |
|
25 <td><a href="#ProcessWrapper">ProcessWrapper</a></td> |
|
26 <td>Wrapper class for multiprocessing.Process.</td> |
|
27 </tr> |
|
28 </table> |
|
29 <h3>Functions</h3> |
|
30 |
|
31 <table> |
|
32 |
|
33 <tr> |
|
34 <td><a href="#patchMultiprocessing">patchMultiprocessing</a></td> |
|
35 <td>Function to patch the multiprocessing module.</td> |
|
36 </tr> |
|
37 </table> |
|
38 <hr /> |
|
39 <hr /> |
|
40 <a NAME="ProcessWrapper" ID="ProcessWrapper"></a> |
|
41 <h2>ProcessWrapper</h2> |
|
42 |
|
43 <p> |
|
44 Wrapper class for multiprocessing.Process. |
|
45 </p> |
|
46 <h3>Derived from</h3> |
|
47 _originalProcess |
|
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="#ProcessWrapper._bootstrap">_bootstrap</a></td> |
|
64 <td>Wrapper around _bootstrap to start debugger.</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="ProcessWrapper._bootstrap" ID="ProcessWrapper._bootstrap"></a> |
|
74 <h4>ProcessWrapper._bootstrap</h4> |
|
75 <b>_bootstrap</b>(<i>*args, **kwargs</i>) |
|
76 |
|
77 <p> |
|
78 Wrapper around _bootstrap to start debugger. |
|
79 </p> |
|
80 <dl> |
|
81 |
|
82 <dt><i>args</i> (list)</dt> |
|
83 <dd> |
|
84 function arguments |
|
85 </dd> |
|
86 <dt><i>kwargs</i> (dict)</dt> |
|
87 <dd> |
|
88 keyword only arguments |
|
89 </dd> |
|
90 </dl> |
|
91 <dl> |
|
92 <dt>Return:</dt> |
|
93 <dd> |
|
94 exit code of the process |
|
95 </dd> |
|
96 </dl> |
|
97 <dl> |
|
98 <dt>Return Type:</dt> |
|
99 <dd> |
|
100 int |
|
101 </dd> |
|
102 </dl> |
|
103 <div align="right"><a href="#top">Up</a></div> |
|
104 <hr /> |
|
105 <hr /> |
|
106 <a NAME="patchMultiprocessing" ID="patchMultiprocessing"></a> |
|
107 <h2>patchMultiprocessing</h2> |
|
108 <b>patchMultiprocessing</b>(<i>module, debugClient</i>) |
|
109 |
|
110 <p> |
|
111 Function to patch the multiprocessing module. |
|
112 </p> |
|
113 <dl> |
|
114 |
|
115 <dt><i>module</i> (module)</dt> |
|
116 <dd> |
|
117 reference to the imported module to be patched |
|
118 </dd> |
|
119 <dt><i>debugClient</i> (DebugClient)</dt> |
|
120 <dd> |
|
121 reference to the debug client object |
|
122 </dd> |
|
123 </dl> |
|
124 <div align="right"><a href="#top">Up</a></div> |
|
125 <hr /> |
|
126 </body></html> |