home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / os2 / programm / 4713 < prev    next >
Encoding:
Text File  |  1992-09-03  |  2.7 KB  |  54 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!destroyer!gatech!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: <1992Sep03.150929.24455@ans.net>
  7. In-Reply-To: daveb@netcom.com's message of Thu, 03 Sep 92 02: 51:23 GMT
  8. Date: Thu, 3 Sep 1992 11:10:57 GMT
  9. References: <1992Sep1.225846.23143@njitgw.njit.edu> <d#lnmz+.daveb@netcom.com>
  10. Organization: Advanced Network & Services, Inc. - Elmsford, NY
  11. Lines: 41
  12.  
  13. In article <d#lnmz+.daveb@netcom.com> daveb@netcom.com (Dave Briccetti) writes:
  14.  
  15. >dic5340@hertz.njit.edu (David Charlap) writes:
  16. >: Not really.  You'll have to remote-debug it.  You can't run a debugger
  17. >: on the same machine as the PM code you're debugging.  It halts lots of
  18. >: things. 
  19. >
  20. >What???  I've been doing it for years.  Occasionally I'll have to put
  21. >printf's in, but most of the time I do quite well with Codeview or IPMD.
  22.  
  23. Well, I think David's comment should have been more along the lines of it can
  24. be somewhat difficult (or dangerous perhaps?) to run a debugger on the same
  25. machine as the PM code you are developing, but it's not impossible.  And until
  26. IPMD that debugger had to be a text mode debugger (ie: you couldn't use
  27. Multiscope in PM mode when debugging PM applications), and you had better make
  28. sure not to stop your program at a breakpoint in a message procedure and then
  29. Ctrl-ESC out of the debugger back to the PM screen.  Instant system hang.
  30.  
  31. This all relates back to the single input queue for applications and since
  32. the debugged application was processing a message (and at a breakpoint),
  33. you couldn't use the keyboard/mouse to switch back to the debugger to
  34. continue the application.
  35.  
  36. Personally, I've done all of my PM debugging using CodeView (and now IPMD)
  37. on the same machine as the code I was debugging.  I've also hung (and had
  38. to reboot) my machine a good number of times under CodeView when reflex took
  39. over and I Ctrl-ESC'd back to PM while still at a breakpoint.  [It's that,
  40. "start-pressing-the-ke...SH*T!" syndrome :-)  at least CAD still worked]
  41.  
  42. Anyway - IPMD has different debugging modes (synchronous/asynchronous I
  43. think - I haven't played with them much), that is supposed to take care
  44. of this, allowing you to use the PM debugger to debug PM applications.  I
  45. haven't yet had a chance to use it, but it sounds nice.
  46.  
  47. -- David
  48. --
  49. /-----------------------------------------------------------------------\
  50.  \              David Bolen             \  Internet: db3l@ans.net      /
  51.   |   Advanced Network & Services, Inc.   \   Phone: (914) 789-5327   |
  52.  / 100 Clearbrook Road, Elmsford, NY 10523  \   Fax: (914) 789-5310    \
  53. \-----------------------------------------------------------------------/
  54.