No, the VS debugger doesn't have a way to show return values (apart from possibly stepping down to JIT'd x86 code and looking at machine registers); this is problematic for every language, but perhaps moreso for F#.

Possible workarounds:

- use the immediate window to (re-)evaluate the last expression (with C# syntax, the immediate window doesn't know F#)

- step out of the function and inspect the value if it was assigned to a local binding in the caller

- modify the code to end with e.g. "let r = ...; r" so that the return value has a name that can be inspected in Debug mode

Go upvote this:

[link:connect.microsoft.com]

(see also links there for possible more advice)

By on 8/6/2010 4:34 PM ()

Go upvote this:

Yes please! This omission is as annoying as No Lambdas in Immediate Window (forget that if we get FSI integration into the debugger. Pretty please?).

By on 8/7/2010 4:41 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper