Visual Studio 11 调试器修复/功能/改进(特别是针对 C# 调试)?

发布于 2024-12-25 08:20:58 字数 335 浏览 3 评论 0 原文

很抱歉,它可能在某个常见问题解答/博客中有所涉及,但我的 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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

╰沐子 2025-01-01 08:20:58

从开发者预览版开始,VS11...

  • 64 位控制台应用程序仍然不支持
  • 使用 lambdas/anon 委托进行监视(和立即?)表达式,仍然不支持
  • 编辑并继续仍然不支持对包含 lambda 的方法进行编辑
  • Silverlight 5 中的编辑并继续(我不知道)

不要让任何此类内容放入不过,你还是走吧。 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...

  • edit-and-continue with 64-bit console apps STILL ARE NOT SUPPORTED
  • watch (and immediate?) expressions with lambdas / anon delegates STILL ARE NOT SUPPORTED
  • edit-and-continue being ok with edits to methods that contain lambdas STILL ARE NOT SUPPORTED
  • edit-and-continue with Silverlight 5 (I DON'T KNOW)

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!

桃酥萝莉 2025-01-01 08:20:58

上一个问题已关闭(推迟),因此请投票支持新问题,要求/乞求 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

若有似无的小暗淡 2025-01-01 08:20:58

Beta 版刚刚发布 [http://www.microsoft.com/visualstudio/11/en-us] 并

  • 使用 64 位控制台应用程序进行编辑并继续仍然不支持

认为应该是支持吗?我愿意!请让您的投票发挥作用:
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

  • edit-and-continue with 64-bit console apps STILL ARE NOT SUPPORTED

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文