5 <link rel="stylesheet" href="styles.css"> |
5 <link rel="stylesheet" href="styles.css"> |
6 </head> |
6 </head> |
7 <body> |
7 <body> |
8 <a NAME="top" ID="top"></a> |
8 <a NAME="top" ID="top"></a> |
9 <h1>eric7.DebugClients.Python.MultiprocessingExtension</h1> |
9 <h1>eric7.DebugClients.Python.MultiprocessingExtension</h1> |
10 |
|
11 <p> |
10 <p> |
12 Module implementing a function to patch multiprocessing.Process to support |
11 Module implementing a function to patch multiprocessing.Process to support |
13 debugging of the process. |
12 debugging of the process. |
14 </p> |
13 </p> |
|
14 |
15 <h3>Global Attributes</h3> |
15 <h3>Global Attributes</h3> |
|
16 <table> |
|
17 <tr><td>_debugClient</td></tr> |
|
18 <tr><td>_originalBootstrap</td></tr> |
|
19 <tr><td>_originalProcess</td></tr> |
|
20 </table> |
16 |
21 |
|
22 <h3>Classes</h3> |
17 <table> |
23 <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> |
24 <tr> |
25 <td><a href="#ProcessWrapper">ProcessWrapper</a></td> |
25 <td><a href="#ProcessWrapper">ProcessWrapper</a></td> |
26 <td>Wrapper class for multiprocessing.Process.</td> |
26 <td>Wrapper class for multiprocessing.Process.</td> |
27 </tr> |
27 </tr> |
28 </table> |
28 </table> |
|
29 |
29 <h3>Functions</h3> |
30 <h3>Functions</h3> |
30 |
|
31 <table> |
31 <table> |
32 |
|
33 <tr> |
32 <tr> |
34 <td><a href="#patchMultiprocessing">patchMultiprocessing</a></td> |
33 <td><a href="#patchMultiprocessing">patchMultiprocessing</a></td> |
35 <td>Function to patch the multiprocessing module.</td> |
34 <td>Function to patch the multiprocessing module.</td> |
36 </tr> |
35 </tr> |
37 </table> |
36 </table> |
|
37 |
38 <hr /> |
38 <hr /> |
39 <hr /> |
39 <hr /> |
40 <a NAME="ProcessWrapper" ID="ProcessWrapper"></a> |
40 <a NAME="ProcessWrapper" ID="ProcessWrapper"></a> |
41 <h2>ProcessWrapper</h2> |
41 <h2>ProcessWrapper</h2> |
42 |
|
43 <p> |
42 <p> |
44 Wrapper class for multiprocessing.Process. |
43 Wrapper class for multiprocessing.Process. |
45 </p> |
44 </p> |
|
45 |
46 <h3>Derived from</h3> |
46 <h3>Derived from</h3> |
47 _originalProcess |
47 _originalProcess |
48 <h3>Class Attributes</h3> |
48 <h3>Class Attributes</h3> |
49 |
|
50 <table> |
49 <table> |
51 <tr><td>None</td></tr> |
50 <tr><td>None</td></tr> |
52 </table> |
51 </table> |
|
52 |
53 <h3>Class Methods</h3> |
53 <h3>Class Methods</h3> |
54 |
|
55 <table> |
54 <table> |
56 <tr><td>None</td></tr> |
55 <tr><td>None</td></tr> |
57 </table> |
56 </table> |
|
57 |
58 <h3>Methods</h3> |
58 <h3>Methods</h3> |
59 |
|
60 <table> |
59 <table> |
61 |
|
62 <tr> |
60 <tr> |
63 <td><a href="#ProcessWrapper._bootstrap">_bootstrap</a></td> |
61 <td><a href="#ProcessWrapper._bootstrap">_bootstrap</a></td> |
64 <td>Wrapper around _bootstrap to start debugger.</td> |
62 <td>Wrapper around _bootstrap to start debugger.</td> |
65 </tr> |
63 </tr> |
66 </table> |
64 </table> |
|
65 |
67 <h3>Static Methods</h3> |
66 <h3>Static Methods</h3> |
68 |
|
69 <table> |
67 <table> |
70 <tr><td>None</td></tr> |
68 <tr><td>None</td></tr> |
71 </table> |
69 </table> |
72 |
70 |
|
71 |
73 <a NAME="ProcessWrapper._bootstrap" ID="ProcessWrapper._bootstrap"></a> |
72 <a NAME="ProcessWrapper._bootstrap" ID="ProcessWrapper._bootstrap"></a> |
74 <h4>ProcessWrapper._bootstrap</h4> |
73 <h4>ProcessWrapper._bootstrap</h4> |
75 <b>_bootstrap</b>(<i>*args, **kwargs</i>) |
74 <b>_bootstrap</b>(<i>*args, **kwargs</i>) |
76 |
|
77 <p> |
75 <p> |
78 Wrapper around _bootstrap to start debugger. |
76 Wrapper around _bootstrap to start debugger. |
79 </p> |
77 </p> |
|
78 |
80 <dl> |
79 <dl> |
81 |
80 |
82 <dt><i>args</i> (list)</dt> |
81 <dt><i>args</i> (list)</dt> |
83 <dd> |
82 <dd> |
84 function arguments |
83 function arguments |
104 <hr /> |
103 <hr /> |
105 <hr /> |
104 <hr /> |
106 <a NAME="patchMultiprocessing" ID="patchMultiprocessing"></a> |
105 <a NAME="patchMultiprocessing" ID="patchMultiprocessing"></a> |
107 <h2>patchMultiprocessing</h2> |
106 <h2>patchMultiprocessing</h2> |
108 <b>patchMultiprocessing</b>(<i>module, debugClient</i>) |
107 <b>patchMultiprocessing</b>(<i>module, debugClient</i>) |
109 |
|
110 <p> |
108 <p> |
111 Function to patch the multiprocessing module. |
109 Function to patch the multiprocessing module. |
112 </p> |
110 </p> |
|
111 |
113 <dl> |
112 <dl> |
114 |
113 |
115 <dt><i>module</i> (module)</dt> |
114 <dt><i>module</i> (module)</dt> |
116 <dd> |
115 <dd> |
117 reference to the imported module to be patched |
116 reference to the imported module to be patched |