为什么不在visual studio中使用Edit and Continue?(Why not use Edit and Continue in visual studio?)

编程入门 行业动态 更新时间:2024-10-24 01:48:54
为什么不在visual studio中使用Edit and Continue?(Why not use Edit and Continue in visual studio?)

编辑和继续看起来是一个很好的选择,所以为什么微软选择它(你必须检查相关的复选框,使其工作)?

我在这篇文章中读到它的工作原理是在二进制映像中为函数留出一些额外的空间,它对调试过程的性能有任何明显的影响吗?

还有其他原因我想让它被禁用吗?

Edit and Continue looks like a great option, so why Microsoft made it optional (you have to check the relevant checkbox to make it work)?

I read in this post that it works by leaving some extra room around functions in the binary image, does it have any noticeable effect on performance of the debugging process?

Is there any other reason why I would want to make it disabled?

最满意答案

E + C并不适合所有人,它不能扩展到使用大量静态库的非常大的程序。 他们更喜欢在程序运行时保留编辑代码的能力。 E + C仅允许使用断点活动进行编辑,并坚持能够编译更改以继续运行。

当然,它对性能有影响。 间接因为它需要关闭优化器的调试版本。 直接因为那些堆栈预订,你会更快地点击这个网站的名字。 使用较小的数据集来调试程序通常是务实的或必要的。

E+C is not for everybody, it doesn't scale on very large programs that use a lot of static libraries. They'll prefer retaining the ability to edit code while the program is running. E+C only allows editing with a breakpoint active and insists on being able to compile changes to continue running.

Sure, it has an effect on perf. Indirectly because it requires a debug build with the optimizer turned off. Directly because of those stack reservations, you'll hit this site's name a lot quicker. Working with smaller data sets to debug the program is typically pragmatic or necessary.

更多推荐

本文发布于:2023-08-04 14:57:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1417656.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:studio   visual   Continue   Edit

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!