Skip to content

How to set breakpoint in Python pdb?

import pdb

<SOME_CODE>
pdb.set_trace()

###  OR  ###
from pdb import set_trace as bp

<SOME_CODE>
bp()
See also  Python code snippet - How to pre populate field flask wtforms?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.