Variable f # variables are not displayed in VS 2008. Local debug window

I am using VS2008 with F # integration (April 2010).

When I declare a normal variable like

let x = 4 

then x will appear in the Local debug window when I set a breakpoint

However, if I use a mutable variable

 let mutable x = 4 

then x will not appear in the same window

Any tips?

+4
source share
1 answer

I don’t think it is that simple. In any case, in my experience, β€œtop-level” debugging experience is often not as good as debugging with functions, for example, if you have ten lines of code at the top level, change it to

 let Main() = // your 10 lines of code Main() 

and debugging experience can improve.

+4
source

Source: https://habr.com/ru/post/1310549/


All Articles