Skip to main content

Thread: IPython debugger


hi everyone,

want use ipython debugger little program see how goes, when try following line:

code:
in [1]: run -d ball_table.py --------------------------------------------------------------------------- attributeerror                            traceback (most recent call last)  /home/steeve/python/source/basic/<ipython console> in <module>()  /var/lib/python-support/python2.6/ipython/iplib.pyc in ipmagic(self, arg_s)     951         else:     952             magic_args = self.var_expand(magic_args,1) --> 953             return fn(magic_args)     954      955     def ipalias(self,arg_s):  /var/lib/python-support/python2.6/ipython/magic.pyc in magic_run(self, parameter_s, runner)    1613                     maxtries = 10    1614                     bp = int(opts.get('b',[1])[0]) -> 1615                     checkline = deb.checkline(filename,bp)    1616                     if not checkline:    1617                         bp in range(bp+1,bp+maxtries+1):  /usr/lib/python2.6/pdb.pyc in checkline(self, filename, lineno)     450         line or eof). warning: testing not comprehensive.     451         """ --> 452         line = linecache.getline(filename, lineno, self.curframe.f_globals)     453         if not line:     454             print >>self.stdout, 'end of file'  attributeerror: pdb instance has no attribute 'curframe'
what wrong? ideas?

i don't know wrong, ipython doesn't work default pdb. works me:
code:
sudo apt-get install pydb  ipython -pydb
code:
run -d script
btw, didn't know debugger, using python -mpdb script. looks better, thanks.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk [SOLVED] IPython debugger


Ubuntu

Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'