Consider adding debug points for boolean logic #11980
Labels
Area-Debug
stepping, debug points, stacks and more
Feature Improvement
Impact-Low
(Internal MS Team use only) Describes an issue with limited impact on existing code.
Complex boolean logic is quite common in F#, e.g. see examples below. It is really hard to debug.
I propose we add debug points on left and right of
a && b
anda || b
so you can step through this logic and hit breakpoints.C# doesn't allow breaking in boolean logic or any expression. However
match
andif ... then .. else
expressions so adding this seems natural enough.A possible downside is that of "too much stepping" so it takes too long to step through a function. However I've been frustrated by the lack of debugging for boolean logic enough that I think we should prefer the addditional debug points.
Examples
or
The text was updated successfully, but these errors were encountered: