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

Invocation of the function let add a b = a + b does not work on debug console #392

Closed
geraldodev opened this issue Mar 14, 2017 · 1 comment

Comments

@geraldodev
Copy link

VSCode Version: 1.10.2
OS Version: Ubuntu 16.04
Ionide: 2.23.9

Steps to Reproduce:

1.create new F# project
2. On the main file paste
let sub (a, b) = a - b
let add a b =
a + b
3. place a breakpoint debug on the first line of the main and hit start debugging
4. enter (add 2 3) on debug console to be executed on the context which returns
error CS1026: ) expected

Interestingly when the parameter is constrained by a tuple like on sub it works:
sub (3, 2)
1

Also tested the add function on fsharpi from mono and it worked there.

Geraldo Lopes de Souza

@enricosada
Copy link
Contributor

@geraldodev the debugger doesnt support evaluation of f# expressions (ref dotnet/fsharp#2544 for more info).
Atm debugger always try to eval these as c# expressions, that's why sub(3,2) works, is valid c# syntax

@Krzysztof-Cieslak this can be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants