7

In gdb, we can use layout src to get a pretty good debug text-UI. Does pdb(The Python Debugger) have something equivalent? In pdb, I can only see the next line that is going to be executed, which is annoying.

gdb text ui is shown below:

gdb text-ui

youkaichao
  • 1,938
  • 1
  • 14
  • 26

1 Answers1

4

Does pdb(The Python Debugger) have something equivalent?

No, but you can use pudb which is more close to layout src in gdb. From python wiki about pudb:

A visual, console-based, full-screen debugger, designed as a more comfortable drop-in replacement for pdb. (also supports IPython)

ks1322
  • 33,961
  • 14
  • 109
  • 164