Skip to content Skip to sidebar Skip to footer

Ipdb Show Color Code Instead Of Color

Use import ipdb; ipdb.set_trace() to insert breakpoint. Color is fine when first hit the breakpoint, but it shows color code instead of true color when hit the BP the second time (

Solution 1:

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.

Post a Comment for "Ipdb Show Color Code Instead Of Color"