[New-bugs-announce] [issue38054] enhance pdb.set_trace() to run when the specified condition is true

Alexander Ulyanov report at bugs.python.org
Sun Sep 8 06:44:15 EDT 2019


New submission from Alexander Ulyanov <alex.ulnv at gmail.com>:

Through out my experience with python debugger, I often found myself creating if-statements around set_trace() instructions. This patch introduces a key-word argument that allows to pass in a boolean or a condition that evaluates to boolean to control whether pdb.set_trace() command needs to be executed.

----------
messages: 351324
nosy: alex-ulnv
priority: normal
severity: normal
status: open
title: enhance pdb.set_trace() to run when the specified condition is true
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38054>
_______________________________________


More information about the New-bugs-announce mailing list