Slow debugging of C++ Win64x applications in the IDE

From Support
Jump to: navigation, search

When your C++ application built with bcc64x aka "Windows 64-bit (Modern)" or Win64x runs slowly while being debugged in the IDE compared to its speed outside the IDE.
It could be due to heavy memory usage, because the runtime used for the Win64x detects the debugger and it uses a debug heap, which is slower, sometime this can be useful but it slows debugging down.
To prevent this from happening you need to set an environment variable _NO_DEBUG_HEAP=1, this can be done in the IDE.

1) Tools | Options | IDE | Environment Variables | User System Overrides | [New...]

2) Add a new environment variable called "_NO_DEBUG_HEAP" and set the value to "1" ( both without the quotes)

3) [Save]

4) You might want to restart the IDE, but it is not strictly necessary.

5) Your application should then speed up.