I have a proposed solution, albeit rather barbarian.

The offending line (line 452 in pdb.py of Python 2.6):

       line = linecache.getline(filename, lineno,
self.curframe.f_globals)


Replace the above line with the following:


        try:
            line = linecache.getline(filename, lineno, self.curframe.f_globals)
        except AttributeError:
            line = linecache.getline(filename, lineno)

Basically, the method in this madness is that when there is an error,
replace it with Python 2.5 line, which does not contain lineno.  This
"solution" seems to do the trick for me.  Please comment when this
causes more problem.

-- 
Cannot step debugger in IPython 0.9.1/0.10 under Python 2.6.2/2.6.4: Pdb 
instance has no attribute 'curframe'
https://bugs.launchpad.net/bugs/381069
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to