eric7.DebugClients.Python.ModuleLoader
Module implementing an import hook patching modules to support debugging.
Global Attributes
Classes
ModuleLoader |
Class implementing an import hook patching modules to support debugging. |
Functions
ModuleLoader
Class implementing an import hook patching modules to support debugging.
Derived from
None
Class Attributes
Class Methods
Methods
Static Methods
ModuleLoader (Constructor)
ModuleLoader(debugClient)
Constructor
- debugClient (DebugClient)
-
reference to the debug client object
ModuleLoader.__loadModule
__loadModule(fullname)
Private method to load a module.
- fullname (str)
-
name of the module to be loaded
- Return:
-
reference to the loaded module
- Return Type:
-
module
ModuleLoader.create_module
create_module(spec)
Public method to create a module based on the passed in spec.
- spec (ModuleSpec)
-
module spec object for loading the module
- Return:
-
created and patched module
- Return Type:
-
module
ModuleLoader.exec_module
exec_module(module)
Public method to execute the created module.
- module (module)
-
module to be executed
ModuleLoader.find_spec
find_spec(fullname, path, target=None)