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 louielu, vstinner, xdegaye
Date 2017-06-26.15:20:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1498490429.92.0.396147904628.issue30761@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks for this PR Louie, adding count to the pdb commands is useful.

With gdb a very common use case is to set a breakpoint where the code runs very frequently and when only interested in the N(th) execution of this code, to enter the breakpoint command list:

(gdb) commands
Type commands for breakpoint(s) 1, one per line.
End with a line saying just "end".
>silent
>continue <N - 1>
>end
(gdb)

PR 2399 does not handle this case for pdb:
* The 'count' option for the 'continue' command is not implemented.
* The implementation of the 'count' option for 'next' and 'step' does not handle breakpoint command lists (I think).
IMO it is difficult to handle this option for breakpoint command lists directly in pdb.py, but it could be done in bdb.py, adding a keyword argument to set_continue() et al.
History
Date User Action Args
2017-06-26 15:20:29xdegayesetrecipients: + xdegaye, vstinner, louielu
2017-06-26 15:20:29xdegayesetmessageid: <1498490429.92.0.396147904628.issue30761@psf.upfronthosting.co.za>
2017-06-26 15:20:29xdegayelinkissue30761 messages
2017-06-26 15:20:29xdegayecreate