在发布模式下调试.NET [英] Debugging in .NET in Release mode
问题描述
请帮助了解差异。
您可以在释放模式下进行调试。调试和发布只是构建配置(可以创建许多),真正的区别是Debug配置不会优化生成的二进制代码(优化的代码使调试变得复杂)。它还生成额外的调试数据,释放不会。
Some time ago I've read an article on CLR, where author showed that if a project is compiled in DEBUG mode, before each operator comes a NOP command, thus allowing to debug a code. Nevertheless, today I discovered that we can also debug in release mode as well... Please help to understand the difference.
You can debug in Release mode to an extent. Debug and Release are simply build configurations (of which you can create many), the real difference is that Debug configuration doesn't optimize the generated binary code (optimized code complicates debugging). It also generates additional debug data which release does not.
这篇关于在发布模式下调试.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!