It is defined there because VisualGDB normally defines the DEBUG macro for the debug configurations to distinguish them from release ones.
You can simply remove it from the “preprocessor macros” field via VisualGDB Project Properties and click “Apply” to regenerate the gcc_Debug.h file automatically.
I’m also seemingly unable to get rid of that define. I deleted DEBUG defines from all gcc_Debug.h that I could find, and intellisense still thinks it’s defined.
Ah, replied without noticing your reply. Where is “preprocessor macros” field in the VisualGDB Project properties? I’m unable to find it for some reason. I’m using “custom build” type if it’s relevant
For custom build, VisualGDB would actually expect you to configure IntelliSense manually. Hence manually editing the gcc_Debug.h file would be the recommended option.
If it does not help, please try using the ‘Go to definition’ command to locate the macro definition. Also please double-check that you are using the Clang IntelliSense engine and not the native VS one.