Allow setting breakpoints on ternary branches #30646
Labels
Feature Request
Interactive-Debugging
Resolution-Duplicate
The described behavior is tracked in another issue
Milestone
The penalty for using ternaries instead of
if
statements is that breakpoints can't be set for each branch. When you're in the middle of debugging, it's too late to refactor. Sometimes you can set a breakpoint on the whole statement and duplicate the effective condition, but this expression may be nested inside another ternary or in a long initializer expression; even when you can duplicate the condition without side effects, it's frustrating to put together.Similar to #30645, possibly covered by #22016.
The text was updated successfully, but these errors were encountered: