gpt4 book ai didi

c++ - 使用 ssh 重新连接到远程 Ubuntu 机器后,如何继续使用 gdb 调试 c++ 代码?

转载 作者:行者123 更新时间:2023-12-02 10:15:31 25 4
gpt4 key购买 nike

我的本地机器是 Windows 10,我的网络状况不佳。

因此,当我 ssh 登录远程 Ubuntu 机器并尝试使用 gdb 进行调试时,可能需要 30 分钟才能到达断点,我经常得到 connection close错误。

当我再次 ssh 时,我必须重新开始。

gdb有没有可恢复的功能,让我重新连接后可以继续使用?

最佳答案

Is there a recoverable function of gdb so that I can continue using it after reconnecting?



不。

您需要使用旨在保持 session 事件的程序: tmuxscreen .现在花时间学习如何很好地使用它们会为自己付出很多倍的代价。

关于c++ - 使用 ssh 重新连接到远程 Ubuntu 机器后,如何继续使用 gdb 调试 c++ 代码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62119591/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com