home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / os2 / programm / 4752 < prev    next >
Encoding:
Internet Message Format  |  1992-09-07  |  2.1 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!uwm.edu!rutgers!njitgw.njit.edu!hertz.njit.edu!dic5340
  2. From: dic5340@hertz.njit.edu (David Charlap)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Re: Problem with WM_ACTIVATE.
  5. Message-ID: <1992Sep4.233121.24295@njitgw.njit.edu>
  6. Date: 4 Sep 92 23:31:21 GMT
  7. References: <1992Sep1.225846.23143@njitgw.njit.edu> <d#lnmz+.daveb@netcom.com> <1992Sep03.150929.24455@ans.net>
  8. Sender: news@njit.edu
  9. Organization: New Jersey Institute of Technology, Newark, N.J.
  10. Lines: 26
  11. Nntp-Posting-Host: hertz.njit.edu
  12.  
  13. In article <1992Sep03.150929.24455@ans.net> db3l@ans.net (David Bolen) writes:
  14. >In article <d#lnmz+.daveb@netcom.com> daveb@netcom.com (Dave Briccetti) writes:
  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. OK. I normally debug code by single-stepping it through functions.
  32. This clobbers a PM program if you do it on the same machine, since
  33. single-stepping is the same as placing a breakpoint at every line.
  34. -- 
  35.    |)  David Charlap           "TELEPHONE, n.  An Invention of the devil which
  36.   /|_  dic5340@hertz.njit.edu   abrogates some of the advantages of making a
  37.  ((|,)                          disagreeable person keep his distance."
  38.   ~|~                              --- Ambrose Bierce, The Devil's Dictionary
  39.