I am trying to enable Pretty Printing in Eclipse in Ubuntu 14.0.4. I followed the steps to set up pretty printing: http://wiki.eclipse.org/CDT/User/FAQ
I have an SVNed directory, created a .gdbinit file with the suggested code and the correct path, and pointed my Eclipse debugger to this file. I fixed the error in the printerers.py file. When I run debugging with the selected, I get
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 contains python startup code. Can anyone understand what the problem is?
Some of the solutions I found confuse me: