homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tismer
Recipients
Date 2002年05月23日.20:55:20
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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
History
Date User Action Args
2007年08月23日 13:49:26adminlinkissue210682 messages
2007年08月23日 13:49:26admincreate

AltStyle によって変換されたページ (->オリジナル) /