Slowness while debugging applications in the IDE

From Support
Jump to: navigation, search

When your applications built with using the 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 Microsoft runtime detects the debugger and it uses a debug heap, which is slower, sometime this can be useful but it slows debugging down.
More information here:

https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/general-environment-variables
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.