Visual Studio: debug information in release build

前端 未结 4 2072
时光说笑
时光说笑 2020-12-14 15:54

I\'m tempted to include debug information in my release builds that go out to customers. As far as I see the only down side is 25% increase in the binary file size. The ad

4条回答
  •  别那么骄傲
    2020-12-14 16:42

    You don't mention what language you're in, and there might be different answers for C++ vs. C#.

    I'm not 100% sure what change you're considering making. Are you going to tell Visual Studio to make its standard Debug compile, and ship that, or are you going to edit a couple settings in the Release compile? A careful modification of a couple of settings in the Release build strikes me as the best approach.

    Whatever you end up with, I'd make sure that optimizations are turned on, as that can make a significant difference in the performance of the compiled code.

提交回复
热议问题