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 (by press c
) and so on.
←[1;32m 72 ←[1;33m ←[1;32mimport←[0m ←[0mipdb←[0m←[1;33m;←[0m ←[0mipdb←[0m←[1;33m.←[0m←[0mset_trace←[0m←[1;33m(←[0m←[1;33m)←[0m ←[1;31m# XXX BREAKPO INT←[0m←[1;33m←[0m←[0m
It is in windows 7, python 2.7 and 2.6 have the same issue. I think one work around method is using nocolor scheme (how to get nocolor scheme?) And how to fix this issue with color scheme available? Thanks!