Using GDB pretty printer

General questions regarding the usage of CodeLite
jfouche
CodeLite Guru
Posts: 351
Joined: Mon Oct 20, 2008 7:26 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Using GDB pretty printer

Post by jfouche »

Hello Eran,

I'd like to try GDB pretty printers on CL 5.2 Win XP.

I checked "Enable GDB pretty printing", and added python 2.7 to the path.
I created a very simple test :

Code: Select all

#include <iostream>
#include <list>
#include <cstdlib>

int main(int argc, char **argv)
{
	std::list<int> myList;
	myList.push_back(7);
	myList.push_back(3);
	myList.push_back(1);
	
	std::cout << "DONE";
	
	return EXIT_SUCCESS;
}
I added a breakpoint on the cout line. I'm trying to see the "myList" variable as defined in libstdxxx/v6/printers.py, but don't know how to enable this kind of watch...

EDIT : If I missed something, it could be cool to update http://codelite.org/LiteEditor/Debugging to add this information (a new pretty printing § for example).
Jérémie
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Using GDB pretty printer

Post by eranif »

Hi,

If you are using the default gdb that comes with codelite , you can't do that.
You need a custom gdb with python enabled.
This is the one I am using ( a version of it at least ):
https://sourceforge.net/projects/gdbmin ... p/download

Courtesy of ollygdb from codeblocks forum:
http://forums.codeblocks.org/index.php/ ... 301.0.html

Eran
Make sure you have read the HOW TO POST thread
jfouche
CodeLite Guru
Posts: 351
Joined: Mon Oct 20, 2008 7:26 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Re: Using GDB pretty printer

Post by jfouche »

Thanks for your answer, and ofc OllyDbg for its release.
It rocks :)
Jérémie
Post Reply