How to make MSVC debug builds run faster

后端 未结 8 2102
日久生厌
日久生厌 2020-12-31 08:54

We have a large C++ application, which sometimes we need to run as a debug build in order to investigate bugs. The debug build is much much slower than the release build, t

8条回答
  •  春和景丽
    2020-12-31 09:52

    Use #pragma optimize("", off) at the top of selected files that you want to debug in release. This gives better stack trace/variable view.

    Works well if it's only a few files you need to chase the bug in.

提交回复
热议问题