Skip to content

Add debugging step points for "when" clauses in pattern matching #11979

@dsyme

Description

@dsyme

At the moment we don't lay down any debug points for "when" clauses in pattern matching, so you can't break on them unless there is some sequential logic inside (e.g. let, sequencing, loops etc.)

There is no reason for this - it is simple enough to allow debug points here.

e.g.

let test1 x y =
    match x with
    | [_] when y > 4 -> 5
    | [_] when y < 4 -> -5
    | _ -> 2

Check can you validate a breakpoint on the when (before debug launch), and can you hit it at runtime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Debugstepping, debug points, stacks and moreBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions