home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / cplus / 18834 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.4 KB

  1. Path: sparky!uunet!timbuk.cray.com!equalizer!sdcrsi!xlnt!ventura!tim@UCSD.EDU
  2. From: ventura!tim@UCSD.EDU (Tim Dierks)
  3. Newsgroups: comp.lang.c++
  4. Subject: Need Help on Debugging Objects
  5. Keywords: object, debug, constructor
  6. Message-ID: <256@ventura.UUCP>
  7. Date: 8 Jan 93 00:27:56 GMT
  8. Sender: news@ventura.UUCP
  9. Reply-To: ventura!tim@UCSD.EDU
  10. Organization: Ventura Software, Inc., A XEROX Company
  11. Lines: 18
  12. Nntp-Posting-Host: vptim
  13.  
  14. I am looking for ideas on how to track the creation/deletion of objects for
  15. debugging purposes in an application I am writing.  For the PC, The Microsoft
  16. Foundation Class offers a TRACE macro that lets you display a message, but I'd like
  17. more functionality, and I don't plan on use the MFC.  I'd like to be able to do
  18. things like those listed below:
  19.  
  20. - Display a message each time an object is created/deleted, identifying what type of
  21.   object it is, and some unique identifier for the object.
  22. - Identify the creator of each object when created.
  23. - Be able to dump the data members of any object currently in existence.
  24. - Be able to list all the objects currently in existence at any time.
  25.  
  26. Has anyone had any experience with this?  Are there already existing class
  27. libraries or tools that do this sort of thing?  I'd appreciate any ideas.
  28.  
  29. --
  30. Tim Dierks                             internet -- ventura!tim@ucsd.edu
  31. Ventura Software, Inc.                 uunet    -- ucsd!ventura!tim
  32.