Debugging classes with DOM::Node

Andras Mantia amantia at freemail.hu
Mon Nov 10 20:35:25 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Zack Rusin wrote:

> On Monday 10 November 2003 14:26, Andras Mantia wrote:
>> > There might be an option for gdb to disable this behaviour.
>>
>> I've tried to find something, but without success until now.
> 
> I'm not sure if KDevelop allows you to use custom print functions but
> I'd just create a printnode func and add it to my .gdbinit, something
> simple like:
> define printnode
> p $arg0-parent
> p $arg0->next
> p $arg0->prev
> p $arg0->child
> end
> the idea is to explicitely tell gdb what to print.

Me again... But the idea mya be good at the end if I create a custom print 
function which prints out the parent/next/etc. address only, not the content 
and the rest of the class members which are not pointers of the same type. 

BTW, KDevelop allows you to enter custom gdb commands just like you'd use gdb 
alone. In this case I just have to be careful to not click on a node object 
in the variable watch tree, as that one issues a print for that object...

Andras

> 
> Zack
> 

- -- 
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE/r/aNTQdfac6L/08RAom+AKDe2rd4RUkEZ1ajg2yuXUa5ApYc7ACeLEj3
9LbA4RT8jOxWOeDE1LyY9bk=
=jm3b
-----END PGP SIGNATURE-----




More information about the kfm-devel mailing list