How to avoid when a project is getting build every time when click debug?
If the project is getting built every time when click debugs, then check the Refresh policy.
If the project does not match the project which is building, then it will cause a rebuild.
This can be resolved by
1. Go to project properties window->C/C++ Build and then select "Refresh Policy" tab
2. Select the project click “Delete” and then click “Add Resource”... to your project.
In addition to that, this feature can be disabled via “Window: Preferences: Run/Debug: Launching” through the option “Build (if required) before launching” within CCES.