I am debugging a python script which sys.path looks like
sys.path = ['','home/my_library', ..]
I'm having troubles to set a breakpoint in a module from my_library
while using pdb.
The script imports the library with:
import my_library as foo
In turn, my_library makes its module(s) available by:
from my_module import bar
How can address my_module's code while running pdb on my script?
PS: I have tried the followings without success:
b my_module:1
b my_library.my_module:1
b my_library.bar:1
b foo.my_module:1
b foo.bar:1
You qualify the breakpoints with the filename, not the object name:
See also this answer.