home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / os2 / programm / 4756 < prev    next >
Encoding:
Text File  |  1992-09-07  |  2.0 KB  |  43 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!cs.utexas.edu!wupost!usc!sol.ctr.columbia.edu!caen!malgudi.oar.net!news.ans.net!ans.net!db3l
  3. From: db3l@ans.net (David Bolen)
  4. Subject: Re: Problem with WM_ACTIVATE.
  5. Sender: news@ans.net (News Administrator)
  6. Message-ID: <1992Sep05.012846.18450@ans.net>
  7. In-Reply-To: dic5340@hertz.njit.edu's message of 4 Sep 92 23: 31:21 GMT
  8. Date: Fri, 4 Sep 1992 21:29:01 GMT
  9. References: <1992Sep1.225846.23143@njitgw.njit.edu> <d#lnmz+.daveb@netcom.com>
  10.     <1992Sep03.150929.24455@ans.net>
  11.     <1992Sep4.233121.24295@njitgw.njit.edu>
  12. Organization: Advanced Network & Services, Inc. - Elmsford, NY
  13. Lines: 28
  14.  
  15. In article <1992Sep4.233121.24295@njitgw.njit.edu> dic5340@hertz.njit.edu (David Charlap) writes:
  16.  
  17. >OK. I normally debug code by single-stepping it through functions.
  18. >This clobbers a PM program if you do it on the same machine, since
  19. >single-stepping is the same as placing a breakpoint at every line.
  20.  
  21. You can still do it on a single machine with a PM program as long as you
  22. don't switch back to the PM screen while single stepping through your
  23. program's message procedure while it is processing a user input (mouse or
  24. keyboard) event.
  25.  
  26. I did this all the time - including single stepping through my code.
  27. Normally, to help improve performance I turned off screen swapping anyway, so
  28. while I was single stepping through I was just in the debugger's text session,
  29. but there's no problem in general.
  30.  
  31. The only hard requirements were/are that the debugger itself couldn't be PM
  32. (until IPMD), and that you couldn't switch manually to PM (Ctrl-ESC) while
  33. stopped in the middle of a message procedure for a user input message.
  34.  
  35. --
  36. -- David
  37. --
  38. /-----------------------------------------------------------------------\
  39.  \              David Bolen             \  Internet: db3l@ans.net      /
  40.   |   Advanced Network & Services, Inc.   \   Phone: (914) 789-5327   |
  41.  / 100 Clearbrook Road, Elmsford, NY 10523  \   Fax: (914) 789-5310    \
  42. \-----------------------------------------------------------------------/
  43.