gotcha/ipdb — comment on commit 9e1f8d65d7672c79fc81cd2ac5092c3a45c6af54
File:  line 0
By ernop:

I think this change causes this problem: https://bugs.launchpad.net/ipython/+bug/383554?comments=all that bug makes ipdb almost unusable on windows - every time you hit a new set_trace within ipdb, ipython breaks. for debugging django it's a huge pain.

In my local copy of ipdb I have commented out this line:

io.stdout = sys.stdout = sys.__stdout__

which fixes the problem. Maybe there's a way to just not to do that line if it's already done?