python - Is there any ipdb print pager? -
i using ipdb
debug python script.
i want print long variable. there ipdb pager more
or less
used in shells?
thanks
you might want create function accepts text, puts text temporary file, , calls os.system('less %s' % temporary_file_name)
.
to make easier everyday use: put function file (e.g: ~/.pythonrc
) , specify in pythonstartup
.
alternatively can install bpython
(pip install bpython
), , start bpython shell using bpython
. shell has "pager" functionality executes less
last output.
Comments
Post a Comment