How can I clear the Python pdb screen? -
let's write
(pdb) p dir(object)
and, screen taken list of attributes. how can clear text while still in debug mode? importantly, don't want lose place in code.
depends on os. if you're on windows should work:
import os; os.system('cls')
if you're on gnu/linux (i think in mac os too) should trick:
import os; os.system('clear')
but, if use bash shell interpreter, there handy keymap: ctrl+l
Comments
Post a Comment