jquast / blessed

Blessed is an easy, practical library for making python terminal apps
http://pypi.python.org/pypi/blessed
MIT License
1.18k stars 71 forks source link

Warning about ipdb in README #263

Closed yuxi-liu-wired closed 5 months ago

jquast commented 5 months ago

Sorry about your trouble with ipdb. I can understand your frustration, I had this problem when using Curses in C and Python for many years without understanding the solution.

But there is a solution in #91 see code udner Solution.

I have just tried it again to be certain, to use "launch_ipdb_on_exception" context manager and I can confirm that blessed works perfectly fine with ipdb with this code example,

if __name__ == '__main__':
    import ipdb
    with ipdb.launch_ipdb_on_exception():
        main()

best wishes