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.ModuleLoader</h1> |
9 <h1>eric7.DebugClients.Python.ModuleLoader</h1> |
10 |
|
11 <p> |
10 <p> |
12 Module implementing an import hook patching modules to support debugging. |
11 Module implementing an import hook patching modules to support debugging. |
13 </p> |
12 </p> |
|
13 |
14 <h3>Global Attributes</h3> |
14 <h3>Global Attributes</h3> |
15 |
|
16 <table> |
15 <table> |
17 <tr><td>None</td></tr> |
16 <tr><td>None</td></tr> |
18 </table> |
17 </table> |
|
18 |
19 <h3>Classes</h3> |
19 <h3>Classes</h3> |
20 |
|
21 <table> |
20 <table> |
22 |
|
23 <tr> |
21 <tr> |
24 <td><a href="#ModuleLoader">ModuleLoader</a></td> |
22 <td><a href="#ModuleLoader">ModuleLoader</a></td> |
25 <td>Class implementing an import hook patching modules to support debugging.</td> |
23 <td>Class implementing an import hook patching modules to support debugging.</td> |
26 </tr> |
24 </tr> |
27 </table> |
25 </table> |
|
26 |
28 <h3>Functions</h3> |
27 <h3>Functions</h3> |
29 |
|
30 <table> |
28 <table> |
31 <tr><td>None</td></tr> |
29 <tr><td>None</td></tr> |
32 </table> |
30 </table> |
|
31 |
33 <hr /> |
32 <hr /> |
34 <hr /> |
33 <hr /> |
35 <a NAME="ModuleLoader" ID="ModuleLoader"></a> |
34 <a NAME="ModuleLoader" ID="ModuleLoader"></a> |
36 <h2>ModuleLoader</h2> |
35 <h2>ModuleLoader</h2> |
37 |
|
38 <p> |
36 <p> |
39 Class implementing an import hook patching modules to support debugging. |
37 Class implementing an import hook patching modules to support debugging. |
40 </p> |
38 </p> |
|
39 |
41 <h3>Derived from</h3> |
40 <h3>Derived from</h3> |
42 None |
41 None |
43 <h3>Class Attributes</h3> |
42 <h3>Class Attributes</h3> |
44 |
|
45 <table> |
43 <table> |
46 <tr><td>None</td></tr> |
44 <tr><td>None</td></tr> |
47 </table> |
45 </table> |
|
46 |
48 <h3>Class Methods</h3> |
47 <h3>Class Methods</h3> |
49 |
|
50 <table> |
48 <table> |
51 <tr><td>None</td></tr> |
49 <tr><td>None</td></tr> |
52 </table> |
50 </table> |
|
51 |
53 <h3>Methods</h3> |
52 <h3>Methods</h3> |
54 |
|
55 <table> |
53 <table> |
56 |
|
57 <tr> |
54 <tr> |
58 <td><a href="#ModuleLoader.__init__">ModuleLoader</a></td> |
55 <td><a href="#ModuleLoader.__init__">ModuleLoader</a></td> |
59 <td>Constructor</td> |
56 <td>Constructor</td> |
60 </tr> |
57 </tr> |
61 <tr> |
58 <tr> |
73 <tr> |
70 <tr> |
74 <td><a href="#ModuleLoader.find_spec">find_spec</a></td> |
71 <td><a href="#ModuleLoader.find_spec">find_spec</a></td> |
75 <td>Public method returning the module spec.</td> |
72 <td>Public method returning the module spec.</td> |
76 </tr> |
73 </tr> |
77 </table> |
74 </table> |
|
75 |
78 <h3>Static Methods</h3> |
76 <h3>Static Methods</h3> |
79 |
|
80 <table> |
77 <table> |
81 <tr><td>None</td></tr> |
78 <tr><td>None</td></tr> |
82 </table> |
79 </table> |
83 |
80 |
|
81 |
84 <a NAME="ModuleLoader.__init__" ID="ModuleLoader.__init__"></a> |
82 <a NAME="ModuleLoader.__init__" ID="ModuleLoader.__init__"></a> |
85 <h4>ModuleLoader (Constructor)</h4> |
83 <h4>ModuleLoader (Constructor)</h4> |
86 <b>ModuleLoader</b>(<i>debugClient</i>) |
84 <b>ModuleLoader</b>(<i>debugClient</i>) |
87 |
|
88 <p> |
85 <p> |
89 Constructor |
86 Constructor |
90 </p> |
87 </p> |
|
88 |
91 <dl> |
89 <dl> |
92 |
90 |
93 <dt><i>debugClient</i> (DebugClient)</dt> |
91 <dt><i>debugClient</i> (DebugClient)</dt> |
94 <dd> |
92 <dd> |
95 reference to the debug client object |
93 reference to the debug client object |
96 </dd> |
94 </dd> |
97 </dl> |
95 </dl> |
98 <a NAME="ModuleLoader.__loadModule" ID="ModuleLoader.__loadModule"></a> |
96 <a NAME="ModuleLoader.__loadModule" ID="ModuleLoader.__loadModule"></a> |
99 <h4>ModuleLoader.__loadModule</h4> |
97 <h4>ModuleLoader.__loadModule</h4> |
100 <b>__loadModule</b>(<i>fullname</i>) |
98 <b>__loadModule</b>(<i>fullname</i>) |
101 |
|
102 <p> |
99 <p> |
103 Private method to load a module. |
100 Private method to load a module. |
104 </p> |
101 </p> |
|
102 |
105 <dl> |
103 <dl> |
106 |
104 |
107 <dt><i>fullname</i> (str)</dt> |
105 <dt><i>fullname</i> (str)</dt> |
108 <dd> |
106 <dd> |
109 name of the module to be loaded |
107 name of the module to be loaded |
122 </dd> |
120 </dd> |
123 </dl> |
121 </dl> |
124 <a NAME="ModuleLoader.create_module" ID="ModuleLoader.create_module"></a> |
122 <a NAME="ModuleLoader.create_module" ID="ModuleLoader.create_module"></a> |
125 <h4>ModuleLoader.create_module</h4> |
123 <h4>ModuleLoader.create_module</h4> |
126 <b>create_module</b>(<i>spec</i>) |
124 <b>create_module</b>(<i>spec</i>) |
127 |
|
128 <p> |
125 <p> |
129 Public method to create a module based on the passed in spec. |
126 Public method to create a module based on the passed in spec. |
130 </p> |
127 </p> |
|
128 |
131 <dl> |
129 <dl> |
132 |
130 |
133 <dt><i>spec</i> (ModuleSpec)</dt> |
131 <dt><i>spec</i> (ModuleSpec)</dt> |
134 <dd> |
132 <dd> |
135 module spec object for loading the module |
133 module spec object for loading the module |
148 </dd> |
146 </dd> |
149 </dl> |
147 </dl> |
150 <a NAME="ModuleLoader.exec_module" ID="ModuleLoader.exec_module"></a> |
148 <a NAME="ModuleLoader.exec_module" ID="ModuleLoader.exec_module"></a> |
151 <h4>ModuleLoader.exec_module</h4> |
149 <h4>ModuleLoader.exec_module</h4> |
152 <b>exec_module</b>(<i>module</i>) |
150 <b>exec_module</b>(<i>module</i>) |
153 |
|
154 <p> |
151 <p> |
155 Public method to execute the created module. |
152 Public method to execute the created module. |
156 </p> |
153 </p> |
|
154 |
157 <dl> |
155 <dl> |
158 |
156 |
159 <dt><i>module</i> (module)</dt> |
157 <dt><i>module</i> (module)</dt> |
160 <dd> |
158 <dd> |
161 module to be executed |
159 module to be executed |
162 </dd> |
160 </dd> |
163 </dl> |
161 </dl> |
164 <a NAME="ModuleLoader.find_spec" ID="ModuleLoader.find_spec"></a> |
162 <a NAME="ModuleLoader.find_spec" ID="ModuleLoader.find_spec"></a> |
165 <h4>ModuleLoader.find_spec</h4> |
163 <h4>ModuleLoader.find_spec</h4> |
166 <b>find_spec</b>(<i>fullname, path, target=None</i>) |
164 <b>find_spec</b>(<i>fullname, path, target=None</i>) |
167 |
|
168 <p> |
165 <p> |
169 Public method returning the module spec. |
166 Public method returning the module spec. |
170 </p> |
167 </p> |
|
168 |
171 <dl> |
169 <dl> |
172 |
170 |
173 <dt><i>fullname</i> (str)</dt> |
171 <dt><i>fullname</i> (str)</dt> |
174 <dd> |
172 <dd> |
175 name of the module to be loaded |
173 name of the module to be loaded |