I want to follow what import foo
does. When I try to step into it, it says <frame not available>
in the debugger.
I have seen this other question but it is asking for stepping into a Python C function.
I want to follow what import foo
does. When I try to step into it, it says <frame not available>
in the debugger.
I have seen this other question but it is asking for stepping into a Python C function.
Use importlib.import_module
instead.
Actually this works but then it doesn't step into _bootstrap._gcd_import(name[level:], package, level)
. Maybe there is some filtering going on...
Click on it once and then press ctrl+Alt+B
. This will take you to the implementation of the library.
Alternatively, you can right-click on the library name and go to the Go To
option. In the new sub-menu that appears click implementation(s)