Check if C++ program is running in debug mode CLion 2019.3

Hello, how can i check if my program is being debugged at the moment, i want to write something like this(on my pc LOCAL parameter is always true)

void IO () {
#if (LOCAL && !DEBUGGING)
freopen("../input.txt", "r", stdin);
freopen("../output.txt", "w", stdout);
  #else if (DEBUGGING && LOCAL)
freopen("../input.txt", "r", stdin);
#else if (!DEBUGGING && !LOCAL)
fast_io;
#endif
}
1

请先登录再写评论。