Python Forum
Repeat last command in pdb mode - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Repeat last command in pdb mode (/thread-7708.html)



Repeat last command in pdb mode - lylylytc - Jan-22-2018

Hi,

I wonder how can I repeat the last command I type in last pdb mode that I just quited. In the pdb mode, I can only use the up arrow to select the recent command in the CURRENT pdb mode but unable to show the ones in the last pdb mode.

For example, I'd like to set a break point of a file in pdb mode:

(Pdb) b xxx.py:100

When I quit this Pdb mode and re-enter it, I have to type the breakpoint command again. When the file name is long, it is really exhausting.

Anyone has any solution?

Thanks all and have a good day.