GDB Pretty Printers for STL display nicely formatted variables in the hover pop-up and watch window, for all STL containers (vectors, maps, etc). If python is enabled, the version will be printed (probably 2.7.x), otherwise, a message will indicate python scripting is not supported. NOTE: A bug in the Linux version of Codeblocks may prevent entering anything in the Debugger Initialization Commands field. A work-around is to open a CBP project file via a file manager, which in turn launches Codeblocks and seems to resolve the issue. The third column in the Codeblocks popup and watch window displays a long unformatted string. Codeblocks is calling the GDB whatis command. Can this command be Pretty-Printed? GDB Pretty Printers for STL display nicely formatted variables in the hover pop-up and watch window, for all STL containers (vectors, maps, etc). Ensure GDB is python-enabled. For Linux (tested with recent Ubuntu), it is enabled by default. For Windows, MinGW’s GDB is not python enabled. One option is to install If python is enabled, the version will be printed (probably 2.7.x), otherwise, a message will indicate python scripting is not supported. python import sys sys.path.insert(0, ‘c:/MinGW/share/gcc-4.7.2/python/libstdcxx/v6’) from printers import register_libstdcxx_printers register_libstdcxx_printers (None) end Run the command file from GDB (can use Codeblocks-&gt,debugger tab-&gt,command, or in GDB from the console) (substitute your path if necessary) NOTE: A bug in the Linux version of Codeblocks may prevent entering anything in the Debugger Initialization Commands field. A work-around is to open a CBP project file via a file manager, which in turn launches Codeblocks and seems to resolve the issue. The third column in the Codeblocks popup and watch window displays a long unformatted string. Codeblocks is calling the GDB whatis command. Can this command be Pretty-Printed? Source.

Menu
whatsapp button