You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This could be either a bug report or a feature request. pdb has conditional breakpoint feature where you can set a condition for the breakpoint to be effective. You can also use condition command to change it.
The problem is - it never checks whether that condition is a valid expression. The expression will be evaluated when the breakpoint is hit and if there's a syntax error, it'll just consider it True. This is not an ideal behavior. We can warn the users if their input condition is not even a valid expression because under no circumstances that's the expected input. Also it would not be a valid command.
This could be either a bug report or a feature request.
pdb
has conditional breakpoint feature where you can set a condition for the breakpoint to be effective. You can also usecondition
command to change it.The problem is - it never checks whether that condition is a valid expression. The expression will be evaluated when the breakpoint is hit and if there's a syntax error, it'll just consider it
True
. This is not an ideal behavior. We can warn the users if their inputcondition
is not even a valid expression because under no circumstances that's the expected input. Also it would not be a valid command.Linked PRs
The text was updated successfully, but these errors were encountered: