[IPython-dev] making pdoc, pdef, and pinfo more generally useful (Was Re: Patches to use pydb instead of pdb for debugging)

Ville M. Vainio vivainio at gmail.com
Fri Oct 13 15:11:47 CDT 2006


On 10/13/06, Ville M. Vainio <vivainio at gmail.com> wrote:
> On 10/13/06, R. Bernstein <rocky at panix.com> wrote:
>
> > A revised patch follows.
> ....
>
> Now (after applying patches), when I quit ipydb after postmortem
> debugging (%pdb 1 and %run whichpy.py):
>
> ipydb>q
> *** ERROR ***
> This version of pdb has a bug and crashed.
> Returning to IPython...

Ok, I got over that but now I get:

[lscripts]|7> %run -d whichpy.py cp
---------------------------------------------------------------------------
<type 'exceptions.AttributeError'>        Traceback (most recent call last)
q:\trunk\lscripts\<ipython console> in <module>()
Q:\ipython\IPython\iplib.py in
ipmagic(self=<IPython.iplib.InteractiveShell object at 0x00A2D4F0>,
arg_s='%run -d whichpy.py cp')
    887         else:
    888             magic_args = self.var_expand(magic_args)
--> 889             return fn(magic_args)
        fn = <bound method InteractiveShell.magic_run of
<IPython.iplib.InteractiveShell object at 0x00A2D4F0>>
        magic_args = '-d whichpy.py cp'
    890
    891     def ipalias(self,arg_s):
Q:\ipython\IPython\Magic.py in
magic_run(self=<IPython.iplib.InteractiveShell object at 0x00A2D4F0>,
parameter_s='-d whichpy.py cp', runner=None)
   1515                     maxtries = 10
   1516                     bp = int(opts.get('b',[1])[0])
-> 1517                     checkline = deb.checkline(filename,bp)
        checkline = undefined
        deb.checkline = undefined
        filename = 'whichpy.py'
        bp = 1
   1518                     if not checkline:
   1519                         for bp in range(bp+1,bp+maxtries+1):
<type 'exceptions.AttributeError'>: Pdb instance has no attribute 'checkline'

-- 
Ville M. Vainio - vivainio.googlepages.com
blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'


More information about the IPython-dev mailing list