Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to enable gdb pretty printing for C++ STL objects in Eclipse CDT?
    primarykey
    data
    text
    <p>I'm trying to add pretty printing for STL objects in eclipse cdt. I tried to follow the steps described here:</p> <p><a href="http://sourceware.org/gdb/wiki/STLSupport" rel="noreferrer">http://sourceware.org/gdb/wiki/STLSupport</a></p> <p>I checked out the python folder, but I can't seem to get this done...</p> <p>I created a gdbinit and selected for my debug configuration, but whenever I try to start debugging I get the following error:</p> <pre><code>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) </code></pre> <p>If I try to execute the contents of gdbinit in a python shell, I get this error:</p> <pre><code>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') from libstdcxx.v6.printers import register_libstdcxx_printers Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; ImportError: No module named libstdcxx.v6.printers </code></pre> <p>It seems that I don't have such module...I don't have a clue about Python so I don't even know what a "module" is in Python....</p> <p>Can somebody help me with this? It is very important for me to be able to see real debug information, or useful to put it that way. Or someway I can debug even from console and get nice output from gdb, cuz if I go print a string for instance I get useless output....</p> <p>Regards, Alex</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload