It is a known issue when using ipdb for Windows: https://github.com/gotcha/ipdb/issues/31
Apparently, this ticket is still open.
There is a quickfix from a guy that solves the problem:
OK ... I commented out line ipdb/main.py:43 which sets io.stdout and sys.stdout. Then I added a "pass" statement.
This now seems to work for me on windows.