Debugging match with 'when' causes false stepping point #11977
Labels
Area-Debug
stepping, debug points, stacks and more
Bug
Impact-Low
(Internal MS Team use only) Describes an issue with limited impact on existing code.
Debugging this code:
and stepping steps through the line "// this is hit" before continuing. THis is a false step - the code
f n
on that line is never hit.The cause is that when we split pattern matching into chunks (e.g. A2, A3, A4) here https://github.com/dotnet/fsharp/blob/main/src/fsharp/PatternMatchCompilation.fs#L1419 the "continue" expression doesn't have a debug range. That means its initial code gets the debug range of the "A2 when" clause.
The text was updated successfully, but these errors were encountered: