【发布时间】:2014-12-18 03:22:41
【问题描述】:
我正在尝试在 Ubuntu 14.0.4 的 Eclipse 中启用 Pretty Printing。 我已按照步骤设置漂亮的打印:http://wiki.eclipse.org/CDT/User/FAQ 我已经 SVNed 一个目录,使用建议的代码和正确的路径创建了一个 .gdbinit 文件,并将我的 Eclipse 调试指向该文件。我已经修复了 printers.py 文件中的错误。当我使用此选项运行调试时,我得到 p>
Error in final launch sequence
Failed to execute MI command:
source /home/dreitz/python/init.gdbinit
Error message from debugger back end:
/home/dreitz/python/init.gdbinit:6: Error in sourced command file:\nError while executing Python code.
/home/dreitz/python/init.gdbinit:6: Error in sourced command file:\nError while executing Python code.
init.gdbinit 包含 python 启动代码。谁能看出这是什么问题?
我发现一些让我感到困惑的解决方案:
一个 ~/.gdbinit 文件被引用为正在更新,而不是创建您自己的 .gdbinit 文件。我不知道在哪里可以找到这个预先存在的文件。
与版本不匹配。我检查了 GDB 是否已安装,并且 python 2.7.8 已安装。
【问题讨论】:
标签: c++ eclipse ubuntu gdb pretty-print