Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python - How to set breakpoints in a library module (pdb)

>>> 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
Source by pythonhowto.org #
 
PREVIOUS NEXT
Tagged: #python #How #set #breakpoints #library #module
ADD COMMENT
Topic
Name
3+2 =