很抱歉,它可能在某个常见问题解答/博客中有所涉及,但我的 Google-fu 显然很弱。 :(
VS 2010 中的调试体验缺乏一些东西,这些东西似乎可能在 VS 11 中得到修复(至少,恕我直言),但我很难说。无论它们是否真的在“列表”中,
我会想到一些:
- 使用 64 位控制台应用程序编辑并继续(仅适用于 2010 年的 32 位控制台应用程序)。
- 编辑并继续使用
- 带有 lambdas/anon 委托的 Silverlight 5 监视(和立即?)表达式
- 编辑并继续可以编辑包含 lambdas 的方法
Sorry for what seems like it's likely covered in a FAQ/blog somewhere, but my Google-fu is apparently weak. :(
There's a handful of things that the debugging experience in VS 2010 lacks that seems like they're likely to be fixed during VS 11 (at least, IMHO), but it's been hard for me to tell whether they're really on 'the list' or not.
Some that come to mind:
- edit-and-continue with 64-bit console apps (only works with 32-bit console apps in 2010)
- edit-and-continue with Silverlight 5
- watch (and immediate?) expressions with lambdas / anon delegates
- edit-and-continue being ok with edits to methods that contain lambdas
发布评论
评论(3)
从开发者预览版开始,VS11...
不要让任何此类内容放入不过,你还是走吧。 VS11 中有很多新功能,而且距离发布还有一年的时间。谁知道?他们可能决定增加对其中一项的支持。
另外,顺便说一句,他们将来不太可能支持使用 lambdas / LINQ / anon 委托编辑并继续。为什么?嗯,这与这些语言结构转换为 IL 的方式有关。它们在 CS 语言文件中可能看起来很简单,但即使是最基本的 lambda 表达式(例如 i => i + 1)实际上也会在编译时转换为隐藏类。这超出了“编辑并继续”的范围。如果您有兴趣,请创建一个使用 lambda 或委托的非常简单的程序,对其进行编译,然后在 .NET Reflector 中将其打开。 (http://www.reflector.net/。如果您不想购买,您可以获得 30 天的试用版。)选择语言为“IL”并尝试理解它!
As of the Developer Preview version, VS11...
Don't let any of this stuff put you off, however. There are plenty of new features in VS11, and there's still a year before it's released anyway. Who knows? They might decide to add support for one of these.
Also, by the way, it is very unlikely that they will support Edit and Continue with lambdas / LINQ / anon delegates in the future. Why? Well, it has to do with the way that these language constructs are converted to IL. They may seem simple in a CS language file, but even the most basic lambda expression (something like i => i + 1) is actually converted into a hidden class at compile-time. This goes beyond the scope of Edit and Continue. If you're interested, create a very simple program that uses lambdas or delegates, compile it, and open it up in .NET Reflector. (http://www.reflector.net/. You can get a 30 day trial if you don't want to buy it.) Select the language as "IL" and try to make sense of it!
上一个问题已关闭(推迟),因此请投票支持新问题,要求/乞求 11 中的 64 位 EditAndContinue (EnC)。
https://connect.microsoft.com/VisualStudio/feedback/details/736684/edit-and-continue-is-not-supported-when-debugging-a-64-bit-application
The prior issue was closed (deferred) so please vote for a new issue asking/begging for 64bit EditAndContinue (EnC) in 11.
https://connect.microsoft.com/VisualStudio/feedback/details/736684/edit-and-continue-is-not-supported-when-debugging-a-64-bit-application
Beta 版刚刚发布 [http://www.microsoft.com/visualstudio/11/en-us] 并
认为应该是支持吗?我愿意!请让您的投票发挥作用:
https:/ /connect.microsoft.com/VisualStudio/feedback/details/559582/need-c-edit-and-continue-on-x64-native-mode
Beta is just released [http://www.microsoft.com/visualstudio/11/en-us] and
Think it should be supported? I do!, go make your vote count:
https://connect.microsoft.com/VisualStudio/feedback/details/559582/need-c-edit-and-continue-on-x64-native-mode