[PyKDE] eric3: Breakpoint in another file

Florian Lindner mailinglists at xgm.de
Thu Oct 6 12:49:50 BST 2005


Am Mittwoch, 5. Oktober 2005 14:18 schrieb Jul:
> >sys does not seem to have a breakpoint function:
> >>>> import sys
> >>>> sys.breakpoint()
> >
> >Traceback (most recent call last):
> > File "<stdin>", line 1, in ?
> >AttributeError: 'module' object has no attribute 'breakpoint'
> >
> >>>> from sys import breakpoint
> >
> >Traceback (most recent call last):
> >  File "<stdin>", line 1, in ?
> >ImportError: cannot import name breakpoint
>
> This hardbreakpoint functionality has been added in eric3.
> It doesn't work with a standalone 'sys' import, but it works
> during the eric3 debug.

Ok.
If I start the runzope start script from within eric (with "Execute Script" 
F2) everything works perfekt.
But as soon as I add a 

    import sys
    sys.breakpoint()

to a function I get weird errors:

  File "/home/florian/Zope3/src/zope/interface/declarations.py", line 52, in 
changed
    del self._v_attrs
  File "/usr/lib/python2.4/bdb.py", line 54, in trace_dispatch
    return self.dispatch_exception(frame, arg)
  File "/usr/lib/python2.4/site-packages/eric3/Debugger/DebugBase.py", line 
145, in dispatch_exception
    if self.quitting: raise bdb.BdbQuit
BdbQuit: (<bdb.BdbQuit instance at 0xb5b69a0c>, <function Provides at 
0xb68277d4>, (<class 'zope.app.folder.folder.Folder'>, <InterfaceClass 
zope.app.component.interfaces.ISite>, <InterfaceClass 
zope.app.folder.interfaces.IRootFolder>))


Whats wrong there?

Thanks,

Florian




More information about the PyQt mailing list