home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / modula3 / 1160 < prev    next >
Encoding:
Internet Message Format  |  1993-01-27  |  2.3 KB

  1. Path: sparky!uunet!tcsi.com!iat.holonet.net!news.cerf.net!usc!howland.reston.ans.net!spool.mu.edu!hri.com!noc.near.net!ceylon!newshost!fn00
  2. From: fn00@gte.com (Farshad Nayeri)
  3. Newsgroups: comp.lang.modula3
  4. Subject: Re: debugger?
  5. Message-ID: <FN00.93Jan26144154@tahoe.gte.com>
  6. Date: 26 Jan 93 19:41:54 GMT
  7. References: <1993Jan26.141336.13273@ecrc.de>
  8. Sender: news@ceylon.gte.com
  9. Organization: GTE Laboratories, Waltham, Massachusetts, USA
  10. Lines: 43
  11. In-reply-to: marc@ecrc.de's message of 26 Jan 93 14:13:36 GMT
  12.  
  13. In article <1993Jan26.141336.13273@ecrc.de> marc@ecrc.de (Marc Bourgois) 
  14.   writes:
  15.  
  16.    with the release come tools like replayheap and showthread.  From their
  17.    names I suppose they are debugging tools, is there any doc on how to
  18.    use them?  Are they graphical?
  19.  
  20.    Any info on how you debug multithreaded m3 programs is useful -- thanks
  21.  
  22. If you've installed the tools distribution, you can get man pages on
  23. showthread(1) and showheap(1) for some information.
  24.  
  25. I would say that they are "somewhat" graphical. They don't have much
  26. of a GUI, but they do show the information about your running program
  27. graphically.  The "showheap" tool may be great, for example, if you
  28. have a lot (10+) of threads running and you want to see if any of them
  29. is blocking. I have never used "showthread" and "showheap" for
  30. debugging myself, but they are great for showing off to other people
  31. (the average programmer-types get pretty amazed when you show them
  32. that you have 20 threads running in a little program.  ;-)
  33.  
  34. A neat experiment to try is to run a VBT-intensive modula-3 program
  35. and use showthread to show all the threads running.
  36.  
  37. Try displaying the tools on color screens. It is kind of hard to
  38. figure out things on black and white screens.
  39.  
  40. I use gdb for debugging multi-threaded programs. It is not great (you
  41. can't switch from one thread to another), but it works. In case you
  42. missed it, there is a little section about debugging in the SRC
  43. Modula-3 documentation.
  44.  
  45. I remember hearing people talk about a multi-threaded Modula-3
  46. debugger this past summer. Anyone has any "vaporware" info to report?
  47.  
  48. --farshad
  49.  
  50. --
  51. Farshad Nayeri                Intelligent Database Systems
  52. fn00@gte.com                  Computer and Intelligent Systems Laboratory
  53. (617)466-2473                 GTE Laboratories, Waltham, MA
  54.  
  55.   "To see is to forget the name of the thing one sees." -- Paul Valery
  56.