Clion 升级 2021.2
版本后 debug 报错:
process exited with status -1 (attach failed (Not allowed to attach to process. Look in the console messages (Console.app), near the debugserver entries, when the attach failed. The subsystem that denied the attach permission will likely have logged an informative message about why it was denied.))
解决方案:
1,在 https://www.jetbrains.com/clion/download/other.html 下载 2021.1 或者之前的版本重新安装。
2,有人已经报过 BUG 了,见此 https://youtrack.jetbrains.com/issue/CPP-26019 (p.s. 可以关注此帖子,或许后续会发修复版本)