有什么方法可以修复 CLion 中使用 SFML 的程序的 "command timed out" GDB 错误?

Any way to fix "command timed out" GDB error for an SFML-using program in CLion?

问题是 GDB 无法从使用 SFML 的程序的某些地方获取调试信息。 CLion 规格:

我找到了一个建议停止杀毒软件一段时间的答案,但是没有用。

代码示例:

int main(int argc, char* argv[]) {

    sf::RenderWindow window(sf::VideoMode(800, 600), "myproject");

    Interface interface (window);
    /* Setting up 'interface'*/

    while (window.isOpen()) {
        sf::Event event;
        while (window.pollEvent(event)) {
            /* Capture events */
        }
        window.clear ();
        interface.draw (); // Breakpoint here, information captured instantly
    }
}

走进去 interface.draw():

void draw () {
    for (FramePtr &ptr : activeFrameStack) // Debugger fails to get info here
        ptr->draw (window);
}

获取最近发布的 2016.2 版本,修复了 'command timeout' 问题并将捆绑的 GDB 更新到 7.11 (https://blog.jetbrains.com/clion/2016/07/clion-2016-2-released/)。