Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validating breakpoint location... when editing a line that has a Breakpoint in F # #12005

Closed
KevinRansom opened this issue Aug 20, 2021 · 1 comment
Labels
Area-Debug stepping, debug points, stacks and more

Comments

@KevinRansom
Copy link
Member

Copied from VSFeedback

// Learn more about F# at http://docs.microsoft.com/dotnet/fsharp

open System

/// Decodes a Roman Number string to a int number // https://twitter.com/nikoloz_p/status/1421218836896960515
let DecodeRomanNumeral RomanNumeral =
    let DigitToNumber = function
    | 'I' -> 1
    | 'V' -> 5
    | 'X' -> 10
    | 'L' -> 50
    | 'C' -> 100
    | 'D' -> 500
    | 'M' -> 1000
    | c -> failwith (sprintf "Invalid digit %c" c)

let rec sum' Numbers = 
        match Numbers with
        | [] ->0
        | x::y::rest when x < y -> y - x + sum' rest
        | x::rest -> x + sum' rest
    
RomanNumeral 
        |> Seq.map DigitToNumber
        |> Seq.toList
        |> sum'

[<EntryPoint>]
let main argv =
    let message = DecodeRomanNumeral "XVXV"  
    printfn "Hello world %i" message
    0

image

@dsyme dsyme added the Area-Debug stepping, debug points, stacks and more label Aug 22, 2021
@dsyme
Copy link
Contributor

dsyme commented Aug 23, 2021

This was fixed in #11805 or one of the related PRs. At least, I can't repro on main

@dsyme dsyme closed this as completed Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Debug stepping, debug points, stacks and more
Projects
None yet
Development

No branches or pull requests

2 participants