Discussion:
Enumerating Object members
(too old to reply)
Jack
2009-08-25 10:29:25 UTC
Permalink
Hello again,
If I have a full set of source code from a project (Let's say downloaded
from Sourceforge)
1) How can I dump all member variables of various objects into a file in the
course of dry run?

2) if the object contains a linked list and any recursive structures, How
would you tackle this situation?

Thanks
Jack
Jack
2009-08-25 11:16:23 UTC
Permalink
Hi,
Put it in another word, I meant to check runtime
attributes of various objects...
Thanks
Jack
Ben Voigt [C++ MVP]
2009-08-25 20:48:59 UTC
Permalink
This is only possible when you have runtime reflection support. .NET and
Java programs have that kind of metadata. C++ programs usually don't. I
say usually because there's an option to make the compiler generate it for
use in the debugger, but there's no standard way to use it.

Maybe you just want to make a minidump file that you can later explore with
windbg?
Post by Jack
Hello again,
If I have a full set of source code from a project (Let's say downloaded
from Sourceforge)
1) How can I dump all member variables of various objects into a file in
the course of dry run?
2) if the object contains a linked list and any recursive structures, How
would you tackle this situation?
Thanks
Jack
Loading...