调试和发布差异 [英] Debug and Release differences

查看:75
本文介绍了调试和发布差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在性能方面,Debug版本和Release版本之间是否有区别?产生不同的IL?

Is there any differences between the Debug build and the Release build in regards to performance? Different IL generated?

Does the "Optimize code" option in the project change anything in Debug and Release?

推荐答案

那里有[[debug和release版本之间的性能差异] [^ ]遇到类似的问题并提出了一些不错的解决方案.
This link-[Debug vs. Release - The Best of Both Worlds][^] might helped you to get your answer.
or also look there-[Performance differences between debug and release builds][^] having similar question with some nice solution.


通过下面的链接

http://forums.asp.net/t/1160723.aspx [ http://haacked.com/archive/2004/02/14/difference-between-debug-vs-release-build.aspx [
go through the below links

http://forums.asp.net/t/1160723.aspx[^]

http://haacked.com/archive/2004/02/14/difference-between-debug-vs-release-build.aspx[^]


在发布模式下构建应用程序时,调试符号不会被烘焙到程序集,因此您不能使用Visual Studio .NET或其他源代码调试器对其进行调试.很棒的是,在此构建操作期间还对代码进行了优化.并且,在保留对Trace类方法的调用的同时,将禁用对代码中所有Debug类方法的调用. (从此处)
When you build the application in Release mode, the debug symbols are not baked into the assembly, so you cannot debug it using Visual Studio .NET or other source code debuggers. What''s cool is that the code is also optimized during this build operation. And, all calls to Debug class methods in your code are disabled while calls to Trace class methods are left. (from here)


这篇关于调试和发布差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆