Simpler way to put PDB breakpoints in Python code?

后端 未结 14 2235
不知归路
不知归路 2020-11-30 18:21

Just a convenience question. I\'ve been a bit spoiled with debuggers in IDEs like Visual Studio and XCode. I find it a bit clumsy to have to type import pdb; pdb.set_t

14条回答
  •  情话喂你
    2020-11-30 18:59

    You could use Vim with the Python-Mode plugin or Emacs with the Elpy plugin.

    These plugins give you breakpoints with easy keystrokes (\ b in Vim and C-c C-u b in Emacs) plus many other features from heavy-weight IDEs (code folding, refactoring, linting, etc.) - all within a light-weight terminal-based text editor.

提交回复
热议问题