Message406
Logged In: YES
user_id=105700
There appears to be a simple solution.
I'm not used to pdb very much, so I cannot fur sure
say that my patch doesn't affect any extension of it,
but it seems to work just fine.
Idea: Allow botframe not to be a frame at all, but also None.
This makes it possible to use f_back in line 67:
self.botframe = frame.f_back ##!!CT
In stop_here, we just omit the first two lines:
def stop_here(self, frame):
##!!CT if self.stopframe is None:
##!!CT return 1
if frame is self.stopframe:
return 1
while frame is not None and frame is not self.stopframe:
if frame is self.botframe:
return 1
frame = frame.f_back
return 0
By this trick, botframe is llowed to be one level "on top"
of the
topmost frame, and we see the topmost frame behave as nicely
as every other.
-- chris |
|
Date |
User |
Action |
Args |
2007-08-23 13:49:26 | admin | link | issue210682 messages |
2007-08-23 13:49:26 | admin | create | |
|