0

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.

vaughan
  • 6,982
  • 6
  • 47
  • 63

2 Answers2

0

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...

vaughan
  • 6,982
  • 6
  • 47
  • 63
0

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)

Gal
  • 504
  • 4
  • 11
  • It doesn't let me set breakpoints in the internals. I want to trace through, not just see the implementation. – vaughan May 08 '20 at 23:09
  • oh, ok. I think i found what you are looking for [here](https://stackoverflow.com/questions/23071175/how-to-set-breakpoints-in-a-library-module-pdb) – Gal May 08 '20 at 23:13