home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / os2 / programm / 4708 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  2.4 KB

  1. Path: sparky!uunet!vnet.ibm.com
  2. From: francis@vnet.ibm.com (Tim Francis)
  3. Message-ID: <19920903.065139.232@almaden.ibm.com>
  4. Date: Thu, 3 Sep 92 09:46:11 EDT
  5. Subject: Re: Problem with WM_ACTIVATE.
  6. Newsgroups: comp.os.os2.programmer
  7. References: <1992Sep1.225846.23143@njitgw.njit.edu> <d#lnmz+.daveb@netcom.com>
  8. Reply-To: francis@vnet.ibm.com
  9. Organization: IBM Canada Lab, WorkFrame/2 development
  10. Disclaimer: This posting represents the poster's views, not those of IBM
  11. Lines: 42
  12.  
  13. In article <d#lnmz+.daveb@netcom.com>,
  14. daveb@netcom.com (Dave Briccetti) writes:
  15. >
  16. >dic5340@hertz.njit.edu (David Charlap) writes:
  17. >: Not really.  You'll have to remote-debug it.  You can't run a debugger
  18. >: on the same machine as the PM code you're debugging.  It halts lots of
  19. >: things.
  20. >
  21. >What???  I've been doing it for years.  Occasionally I'll have to put
  22. >printf's in, but most of the time I do quite well with Codeview or IPMD.
  23.  
  24. There can be problems debugging PM programs, so IPMD actually has two
  25. modes for PM debugging - synchronous and asynchronous.  From the on-line
  26. help:
  27.  
  28.  When the C Set/2* debugger is operating in synchronous mode, the
  29.  messages that are passed between PM applications are answered by their
  30.  target applications in the order that they were created.  Messages are
  31.  not lost.  The messages that are passed within the C Set/2* debugger,
  32.  however, take priority over any other messages that are passed in the
  33.  system.
  34.  
  35.  When the program being debugged is stopped and the debugger is in
  36.  synchronous mode, other PM applications are locked, leaving the
  37.  debugger free to operate.  In synchronous mode, you will not be able
  38.  to use any other PM applications that are running.
  39.  
  40.  When the C Set/2* debugger is operating in asynchronous mode and the
  41.  program you are debugging is stopped, the debugger immediately
  42.  responds to messages that have been sent to the program being debugged
  43.  on this program's behalf.  The C Set/2* debugger answers the messages
  44.  with a simple default response, freeing up other processes to operate
  45.  while the debugger has control.  When you are running the C Set/2*
  46.  debugger in asynchronous mode, other PM applications running in the
  47.  system are not blocked when the program being debugged stops.
  48.  
  49.  Warning:  Do not operate the C Set/2* debugger in asynchronous mode if
  50.  the PM application that you are debugging requires the appropriate
  51.  response to its messages.  For example, a dynamic data exchange (DDE)
  52.  message would require the appropriate response.
  53.  
  54. -tim
  55.