开发者

f# mutable variables don't show up in VS 2008 Local debug window

I'm using VS2008 with F# integration (April 2010 Community Technology Preview)

When I declare a normal variable, e.g.

let x开发者_如何转开发 = 4

then x will show up 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 advice?


I don't think it's that simple. In any case, in my experience, the 'top level' debugging experience is often not as good as debugging withing functions, so e.g. if you have ten lines of code at the top level, change it to

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

and the debugging experience may improve.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜