youkaichao
youkaichao

Reputation: 2384

Does pdb has the layout src like gdb?

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

Upvotes: 7

Views: 4570

Answers (1)

ks1322
ks1322

Reputation: 35815

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)

Upvotes: 5

Related Questions