home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 14029 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  2.0 KB

  1. Path: sparky!uunet!stanford.edu!unix!mxmora
  2. From: mxmora@unix.SRI.COM (Matt Mora)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Musings on the Think C Debugger
  5. Message-ID: <37846@unix.SRI.COM>
  6. Date: 14 Aug 92 15:59:01 GMT
  7. References: <1992Aug13.191622.15902@hobbes.kzoo.edu>
  8. Organization: SRI International, Menlo Park, California
  9. Lines: 40
  10.  
  11. In article <1992Aug13.191622.15902@hobbes.kzoo.edu> k044477@hobbes.kzoo.edu (Jamie R. McCarthy) writes:
  12.  
  13.  
  14. >How does ThD redraw my windows for me!?
  15.  
  16. I think its an option you can set in TC. Before a switch it will
  17. save the image in your windows in an offscreen buffer. If the
  18. debugger windows wipe out part of your windows, it blasts the image
  19. it saved back into your windows and probably calls a valid rect so
  20. that your app won't "see" an update event. If you don't have this option
  21. set then every time TCD stomps on your windows you app will receive
  22. update events. This is a drag if you are trying to debug your window drawing
  23. code. becuase you will end up in the update loop from hell. :-)
  24.  
  25.  
  26. >Is there some automatic way that the ThD knows what lo-mem globals etc.
  27. >to swap in and out when it hits a breakpoint?  Or do the programmers at
  28. >Symantec know about some undocumented system call that'll do a context
  29. >switch for you?
  30.  
  31. They probably do know. But if they tell you , then they'll have to kill you.
  32. :-)
  33. Debuggers are very strange beasts and need to do very strange things to
  34. do its job. Hense teh need for updating them every time the system changes.
  35.  
  36. I always wanted to write a mini debugger for the mac. One that would bring
  37. up a dialog (if it could) and ask this question. "Sorry system error occured.
  38. And give you three choices. "Try and exit gracefully","Reboot" or "Macsbug"
  39. What a pipe dream huh?
  40.  
  41. Matt
  42.  
  43.  
  44.  
  45.  
  46. -- 
  47. ___________________________________________________________
  48. Matthew Mora                |   my Mac  Matt_Mora@sri.com
  49. SRI International           |  my unix  mxmora@unix.sri.com
  50. ___________________________________________________________
  51.