I am debugging a python script which sys.path looks like
sys.path = [\'\',\'home/my_library\', ..]
I\'m having troubles to set a breakpoint
You qualify the breakpoints with the filename, not the object name:
>>> import pdb
>>> import artwork # module we want to break inside
>>> pdb.set_trace()
--Return--
> <console>(1)<module>()->None
(Pdb) b artwork/models.py:1
Breakpoint 1 at /home/user/projects/artwork/models.py:1
See also this answer.