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

  1. Path: sparky!uunet!decwrl!oracle!unrepliable!bounce
  2. Newsgroups: comp.sys.mac.programmer
  3. From: sblack@oracle.uucp (Steven T. Black)
  4. Subject: Re: THINK Debugger Question
  5. Message-ID: <1992Aug18.070401.13788@oracle.us.oracle.com>
  6. Keywords: THINK, debugger, Apple Events
  7. Sender: Steven T. Black
  8. Nntp-Posting-Host: mailseq.us.oracle.com
  9. Organization: Oracle Corporation, Redwood Shores CA
  10. References: <steve.herman-130892173316@hermasj.msfc.nasa.gov.>
  11. Date: Tue, 18 Aug 1992 07:04:01 GMT
  12. X-Disclaimer: This message was written by an unauthenticated user
  13.               at Oracle Corporation.  The opinions expressed are those
  14.               of the user and not necessarily those of Oracle.
  15. Lines: 26
  16.  
  17. In article <steve.herman-130892173316@hermasj.msfc.nasa.gov.> steve.herman%express@freedom.msfc.nasa.gov (Steve Herman) writes:
  18. >
  19. >  Is there a way to run in the THINK C debugger and break on an Open
  20. >Document AppleEvent (or any other apple event for that matter)?
  21. >
  22.  
  23. In a word, No.  
  24.  
  25. When the debugger breaks, it dumps any pending AEvents, leaving
  26. you wondering what is going on.  The only work around I've found is to put in
  27. some extra variables to keep the result codes generated by the AEvent
  28. processing, and then set a breakpoint AFTER the AEvent has been processed.
  29. You can then examine the result codes to see what and if anything is going
  30. wrong.  
  31.  
  32. Yes, it would be nice if you could just break anywhere and trace the
  33. execution, but if programming was that easy, then were would be the challenge?
  34.  
  35. If anybody knows of another work-around, my ears remain open.
  36.  
  37. Good Luck,
  38.  
  39. Steven T. Black
  40.  
  41. "This .sig intentionally left blank"
  42.  
  43.