[Ilugc] display values inside a class at runtime

  • From: cnarendra_babu@xxxxxxxxx (narendra babu)
  • Date: Sun Nov 21 09:48:26 2010

Hello Folks ,
?
I have a many many ?c++ class which has 50+ variables of? kinds of primitive 
data types , pointers to primitive types , pointers ?to other classes and 
structs .
?
I need to dump the values inside the class which has 50+ vars rather than using 
printf or cout at run time .
?
as i need to dump into binary files , before dumping i need to check in on shot 
the values inside the classes inside the code? or? any flag at compile time 
which can help me tov iew values at?runtime ?.
?
yes i tried options of gdb,ddd, options to view all variables inside class? . 
?
__progname works for structs and not classes as per below url 
http://stackoverflow.com/questions/3311182/linux-c-easy-pretty-dump-printout-of-structs-like-in-gdb-from-source-cod

?
any help is really appriciated
?
?
Thanks
Narendra


Other related posts: