home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!nih-csl!FAXCSL!FIXER
- From: fixer@faxcsl.dcrt.nih.gov (Chris Bearded Guacamole Tate)
- Subject: Re: touch & go breakpoints in ThinkC debugger?
- Message-ID: <1993Jan27.130609.16133@alw.nih.gov>
- Sender: postman@alw.nih.gov (AMDS Postmaster)
- Reply-To: fixer@faxcsl.dcrt.nih.gov
- Organization: Computer Systems Laboratory, DCRT, NIH
- References: <1993Jan19.183025.4425@leland.Stanford.EDU>,<1993Jan27.001424.8181@athena.mit.edu>
- Date: Wed, 27 Jan 1993 13:06:09 GMT
- Lines: 41
-
- >In article <1993Jan19.183025.4425@leland.Stanford.EDU> dmcannon@leland.Stanford.EDU (David M. Cannon) writes:
- >I don't see any clear reference to touch & go breakpoints in the
- >ThinkC manual debugger section, and I assume that this means that
- >you can't do them. Can anyone confirm or refute this? If there
- >really is no such option, and since I know Think folks monitor
- >this forum, let me make it a suggestion for the next release, major
- >or minor.
- >
- >In case it isn't clear what I mean by a touch & go breakpoint: I
- >would like to see a breakpoint which stops execution of the program,
- >updates the data window in the debugger with the proper information,
- >and then continues program execution. Basically a regular breakpoint
- >except that you don't have to hit a key or move & click the mouse to
- >hit the 'go' button. It would be *very* nice to have when tracking the
- >state of the program during mouse and keyboard activity, among other
- >things, without having to write your own monitoring display.
-
- I think the closest that THINK C comes to what you want is documented on page
- 234 of the THINK C 5 manual:
-
- "Stepping Continuously
-
- If you hold down the Option or Command key as you click on one of the status
- panel buttons (except Stop) you'll enter Auto Mode. In auto mode the debugger
- updates the Source and Data windows and repeats the command. To trace through
- every line of your program automatically, for example, hold down the Option key
- as you click on the Trace button.
-
- One useful technique is to set breakpoints at spots where you'd like to look at
- some variables and then do an Auto-Go. When your program hits the breakpoint,
- the debugger will update the Data window and start the program up again."
-
- It would be nice if there were a different type of breakpoint (a half-filled
- diamond?) that was touch-and-go, but they're right - the technique they
- describe is useful.
-
- ------------------------------------------------------------------------------
- Christopher Tate | Return of the CryptoSig (tm):
- Management Systems Designers | XHGVMFCV GBGNKJ KJ LFJG X CXZB, KG GBXIVBJ
- | DMF GVKJ: QVXGBTBN DMF AM, AMP'G ZKJJ.
- fixer@faxcsl.dcrt.nih.gov |
-