Python ipdb

From wikinotes
Revision as of 18:17, 15 February 2019 by Will (talk | contribs) (→‎commands)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

ipdb is an enhanced version of pdb. Some advantages:

  • syntax highlighting
  • tab-completion
  • view entire file (not just snippet)

Install

sudo pip install ipdb

Usage

commands

All of the commands from python pdb are present, but additionally:

ll list entire callable src

within src

import ipdb;ipdb.set_trace()