Enter sticky mode by default with ipdb

Viewed 265

When debugging with ipdb, I find it useful to enter in sticky mode to follow the code source. Is there a way to enter automatically in sticky mode without having to type sticky?

1 Answers

Yes, from the REAMDE: put a file named .pdbrc.py in your home directory, containing:

import pdb
class Config(pdb.DefaultConfig):
    sticky_by_default = True
Related