This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Debugging a constructor
- To: gdb at sourceware dot cygnus dot com
- Subject: Debugging a constructor
- From: Hany Morcos <hanymorcos at yahoo dot com>
- Date: Thu, 24 Feb 2000 15:27:05 -0800 (PST)
How do I print the variable values inside
a constructor?
I can't use this... Because doesn't exist yet..
The object hasn't been constructed...
Then how do I print the value of x??
class y{
public:
y(int* x) {x =
coreDumpAndGenerateManyHeadaches(); // print x inside
gdb } ;
};
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com