Why is running attached to the debugger so slow?

后端 未结 4 892
耶瑟儿~
耶瑟儿~ 2021-01-12 15:25

What is going on that causes a debug build to be so much slower attached to the debugger compared to unattached? They are both the same exe running.

Edit: Most of th

4条回答
  •  无人共我
    2021-01-12 15:54

    There are a couple of reasons why running with the debugger attached can be significantly slower than unattached. The most likely causes are

    • Excessive number of break points
    • Breakpoints which have expensive conditionals
    • Too many trace points

    The first thing to try is disabling all break points and seeing how that effects perf

提交回复
热议问题