Python Forum

Full Version: Repeat last command in pdb mode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.