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