In debugging some module issues, I would like to have insight into what exactly happens when I run import google
(or any import modules).
- Was it loaded or did it come from cache?
- Where did it get imported from? (its not always from a file - it is possible to create a module and add it into the namespace directly)
- What loader was used?
- What about anything that was imported during the import?
Is there a way to get diagnostics on this?