Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我运行 CGDB 时,我看到所有代码/回溯/标准输出的东西都很好。当我退出时,一切都会被清除(例如,就像我退出 vim 时一样)。结果我失去了所有的输出。
我意识到这会有点奇怪,因为它已经内置了一个寻呼机。我只是没有在info cgdb文档中找到任何表明保留日志的魔法的参考。
info cgdb
GDB 命令set logging on,可能对您有用set logging file。set logging off
set logging on
set logging file
set logging off