[Stackless] pdb support (baseframe.f_trace)?
tismer at stackless.com
Mon Jan 26 21:59:34 CET 2004
Bob Ippolito wrote:
> Python 2.3.3 Stackless 3.0 040119 (#2, Jan 26 2004, 05:05:00)
> [GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import pdb
> >>> pdb.set_trace()
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/Volumes/Meth/src/slpdev/src/2.3/src/Lib/pdb.py", line 992, in
> File "/Volumes/Meth/src/slpdev/src/2.3/src/Lib/bdb.py", line 175, in
> frame.f_trace = self.trace_dispatch
> TypeError: attribute 'f_trace' of 'stackless.baseframe' objects is not
> Is this a bug or a feature? :)
You know I have those extra tiny frames, and they are not intended
for the debugger.
I wonder why the above happens. Does pdb walk through all
frames and try to set a trace?
Would it be ok to just make the baseframe f_ trace attribute
writable, but ignore it? (since it doesn't exist at all?)
On the other hand: This baseframe is an artifact:
All tasklets share this frame on top of all real frames.
This simplified my job quite much. On the other hand,
I might consider to make this frame invisible from Python,
by cheating a None, instead?
ciao - chris
Christian Tismer :^) <mailto:tismer at stackless.com>
Mission Impossible 5oftware : Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9a : *Starship* http://starship.python.net/
14109 Berlin : PGP key -> http://wwwkeys.pgp.net/
work +49 30 89 09 53 34 home +49 30 802 86 56 mobile +49 173 24 18 776
PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04
whom do you want to sponsor today? http://www.stackless.com/
Stackless mailing list
Stackless at stackless.com
More information about the Stackless