任何方法来修复"命令超时"在CLion中使用SFML的GDB错误?

时间:2016-06-21 16:47:16

标签: c++ sfml clion

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

  • CLion 2016.1.3
  • MinGW-w64 3.4
  • GDB 7.8.1

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

代码示例:

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);
}

1 个答案:

答案 0 :(得分:0)

使用'命令超时'获取最近发布的2016.2版本问题修复和捆绑GDB更新到7.11(https://blog.jetbrains.com/clion/2016/07/clion-2016-2-released/)。