.pdbrc file

ipdb を使うときのいい感じの .pdbrc の設定。デバッガーに落ちたときに、 pdb ではなく ipython が起動する。

# Install IPython: python3 -m pip install ipython

import IPython
from traitlets.config import get_config

cfg = get_config()
cfg.InteractiveShellEmbed.colors = "Linux"  # syntax highlighting
cfg.InteractiveShellEmbed.confirm_exit = False

alias interacti IPython.embed(config=cfg)

https://gist.github.com/nnja/b979d0d2257524338d1fcacc4b41a4a7#file-pdbrc

くわしくは下記の動画の22:13頃

https://m.youtube.com/watch?v=5AYIe-3cD-s

出典:Nina Zakharenko - Personal Website