home *** CD-ROM | disk | FTP | other *** search
- 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
- From: fn00@gte.com (Farshad Nayeri)
- Newsgroups: comp.lang.modula3
- Subject: Re: debugger?
- Message-ID: <FN00.93Jan26144154@tahoe.gte.com>
- Date: 26 Jan 93 19:41:54 GMT
- References: <1993Jan26.141336.13273@ecrc.de>
- Sender: news@ceylon.gte.com
- Organization: GTE Laboratories, Waltham, Massachusetts, USA
- Lines: 43
- In-reply-to: marc@ecrc.de's message of 26 Jan 93 14:13:36 GMT
-
- In article <1993Jan26.141336.13273@ecrc.de> marc@ecrc.de (Marc Bourgois)
- writes:
-
- with the release come tools like replayheap and showthread. From their
- names I suppose they are debugging tools, is there any doc on how to
- use them? Are they graphical?
-
- Any info on how you debug multithreaded m3 programs is useful -- thanks
-
- If you've installed the tools distribution, you can get man pages on
- showthread(1) and showheap(1) for some information.
-
- I would say that they are "somewhat" graphical. They don't have much
- of a GUI, but they do show the information about your running program
- graphically. The "showheap" tool may be great, for example, if you
- have a lot (10+) of threads running and you want to see if any of them
- is blocking. I have never used "showthread" and "showheap" for
- debugging myself, but they are great for showing off to other people
- (the average programmer-types get pretty amazed when you show them
- that you have 20 threads running in a little program. ;-)
-
- A neat experiment to try is to run a VBT-intensive modula-3 program
- and use showthread to show all the threads running.
-
- Try displaying the tools on color screens. It is kind of hard to
- figure out things on black and white screens.
-
- I use gdb for debugging multi-threaded programs. It is not great (you
- can't switch from one thread to another), but it works. In case you
- missed it, there is a little section about debugging in the SRC
- Modula-3 documentation.
-
- I remember hearing people talk about a multi-threaded Modula-3
- debugger this past summer. Anyone has any "vaporware" info to report?
-
- --farshad
-
- --
- Farshad Nayeri Intelligent Database Systems
- fn00@gte.com Computer and Intelligent Systems Laboratory
- (617)466-2473 GTE Laboratories, Waltham, MA
-
- "To see is to forget the name of the thing one sees." -- Paul Valery
-