Tridib Bandopadhyay wrote in post #1035615:
> I debugged some print statement inside rb_newobj() method in gc.c
> file to check when the new object is defined.  So I can see that
> statement of mine.

Set a breakpoint on that function in GDB instead of printing things.
It will save you time and help you explore and learn the code faster.

http://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Debug.html

-- 
Posted via http://www.ruby-forum.com/.