home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / programm / 22209 < prev    next >
Encoding:
Text File  |  1993-01-27  |  2.7 KB  |  54 lines

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