Comment 27 for bug 381069

Revision history for this message
Jon Olav Vik (jonovik) wrote :

#26: Mike, try _adding_ the checkline() method in IPython/Debugger.py. Clicking the IPython/Debugger.py link in
http://bazaar.launchpad.net/~ipython-dev/ipython/0.10.1/revision/1214
will display added lines in dark green.

The IPython Pdb class inherits from the standard Pdb class ("from pdb import Pdb as OldPdb", followed later by "class Pdb(OldPdb):"). Fernando's fix overrides the checkline() method, whereas Minjae's original solution modified the standard Pdb.checkline() to tolerate the way IPython does things.