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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -