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.
使用 Eclipse,可以通过 gdb 运行进程。
这为我们提供了一个漂亮的 GUI,可用于检查调用堆栈、变量内容等。
是否可以在 Eclipse 中打开核心转储并通过 gdb 进行检查?
切换到 Debug 透视图后,选择Run -> Debug Configurations...(如果没有看到,请向下滚动)-> C/C++ Postmortem Debugger。然后用您的可执行文件和核心转储填写C/C++ 应用程序和核心文件字段,然后点击调试按钮。
即使他们的菜单组织是有逻辑的,Eclipse CDT 开发人员肯定不会让查找最常用的操作变得容易。