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 xdegaye
Recipients blueyed, remi.lapeyre, xdegaye
Date 2019-05-25.09:35:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1558776957.01.0.603040755959.issue37011@roundup.psfhosted.org>
In-reply-to
Content
> While typically pdb is not used in tests, it is just good practice, given that there can only be a single trace function.

IMO invoking "good practice" is not sufficient to motivate such a change.

The proposed change is not backward compatible. A common use case for pdb is to insert a so-called hard breakpoint (import pdb; pdb.set_trace()) line in existing code. In that case the proposed change builds an implicit stack of trace functions that is increased each time the interpreter executes this hard breakpoint (when set in a loop or in a function invoked multiple times for example). When the user hits the 'continue' pdb command, then pdb stops at the next function call if the hard breakpoint has been hit more than once instead of leaving the pdb session for good as it does currently.
History
Date User Action Args
2019-05-25 09:35:57xdegayesetrecipients: + xdegaye, blueyed, remi.lapeyre
2019-05-25 09:35:57xdegayesetmessageid: <1558776957.01.0.603040755959.issue37011@roundup.psfhosted.org>
2019-05-25 09:35:56xdegayelinkissue37011 messages
2019-05-25 09:35:56xdegayecreate