[IronPython] Standard Python Debugging not supported

Jean-Yves MENGANT jymengant at teaser.fr
Fri Oct 6 09:30:37 CEST 2006


You're right Nathan , but one of the module violating the rule (bdb.py) is
part of standard core Python libs delivered inside the official python
distribution + documented inside the Python Library Reference :=) 

Jean-Yves

> -----Original Message-----
> From: users-bounces at lists.ironpython.com [mailto:users-
> bounces at lists.ironpython.com] On Behalf Of Nathan R. Ernst
> Sent: Friday, October 06, 2006 2:24 AM
> To: 'Discussion of IronPython'
> Subject: Re: [IronPython] Standard Python Debugging not supported
> 
> I don't mean to flame, but Python protocol dictates that methods/members
> preceded by "_" are generally not supposed to be referred to.  I guess you
> could kind of consider them 'protected', whilst members preceded by a
> double-underscore are considered 'private' (despite being accessible if
> you
> de-mangle the names manually).
> 
> Perhaps the modules relying upon behavior supplied by these modules should
> have defects assigned against them for using these methods, as well?  If
> its
> generally accepted that a Python implementation should provide methods
> prefixed by "_" on built-ins, maybe they ought to be moved towards more
> prominent, public names?
> 
> Just some random thoughts on the topic...
> 
> -Nathan
> 
> -----Original Message-----
> From: users-bounces at lists.ironpython.com
> [mailto:users-bounces at lists.ironpython.com] On Behalf Of Jeff Griffiths
> Sent: Thursday, October 05, 2006 12:34 PM
> To: Discussion of IronPython
> Subject: Re: [IronPython] Standard Python Debugging not supported
> 
> Dino Viehland wrote:
> > Sys._getframe() is likely significantly harder to implement.  I'd be
> > a little bit surprised if we get this into 1.1 but it'd be nice to
> > get at some point in the future.  The hard part of this probably
> > isn't supporting sys._getframe() but actually supporting
> > sys._getframe(depth).
> 
> > Do you know if the parameterless version will unblock you, or do you
> > need the full blown functionality?
> 
> Komodo's debugger only makes calls like:
> 
> sys._getframe().f_back
> 
> We don't seem to pass arguments in, so I expect sys._getframe() without
> parameters might work.
> 
> JeffG
> 
> ps for the curious, the debugger implementation we use is FOSS, and
> available here:
> 
> http://aspn.activestate.com/ASPN/Downloads/Komodo/RemoteDebugging
> 
> The DBGP protocol it is based on is doc'd here:
> 
> http://www.xdebug.org/docs-dbgp.php
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> users mailing list
> users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
> 
> _______________________________________________
> users mailing list
> users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com




More information about the Ironpython-users mailing list