我试图在eclipse cdt中为STL对象添加漂亮的打印。 我试图按照这里描述的步骤: http://sourceware.org/gdb/wiki/STLSupport 我检查了python文件夹,但我似乎无法完成这项工作… 我创build了一个gdbinit,并select了我的debuggingconfiguration,但每当我尝试开始debugging,我得到以下错误: Error while executing Python code. !STACK 0 java.lang.Exception: /home/lizardking/workspace/eu.sofia.kpi.cpp.x86.testapp/.gdbinit:6: Error in sourced command file: Error while executing Python code. at org.eclipse.cdt.dsf.mi.service.command.AbstractMIControl$RxThread.processMIOutput(AbstractMIControl.java:824) at org.eclipse.cdt.dsf.mi.service.command.AbstractMIControl$RxThread.run(AbstractMIControl.java:662) 如果我尝试在python shell中执行gdbinit的内容,我得到这个错误: Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. import sys sys.path.insert(0, '/home/Documents/python') […]