home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / pascal / 7709 < prev    next >
Encoding:
Text File  |  1992-12-29  |  1.6 KB  |  39 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!usc!cs.utexas.edu!torn!news.ccs.queensu.ca!slip205.telnet1.QueensU.CA!dmurdoch
  3. From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
  4. Subject: Re: Setting Watches
  5. Message-ID: <dmurdoch.259.725597340@mast.queensu.ca>
  6. Lines: 27
  7. Sender: news@knot.ccs.queensu.ca (Netnews control)
  8. Organization: Queen's University
  9. References: <85895@ut-emx.uucp>
  10. Date: Tue, 29 Dec 1992 02:49:00 GMT
  11.  
  12. In article <85895@ut-emx.uucp> baylor@ccwf.cc.utexas.edu (Baylor) writes:
  13. >    I have set it's constant and variables in the procedure.
  14. >When i do, i can't watch any of these variables - the watch 
  15. >windows claims it doesn't know the symbol (below, CurrentPlane,
  16. >Page_1_Offset, ScreenHeight&Width, PlaneWords).
  17.  
  18. ...
  19. >    I also think i'm getting the wrong value for tracing
  20. >registers. While watching/tracing this statement
  21. >    mov di,8000
  22. >I can see di = 65,535. Later (after the movsw which affects di)
  23. >di claims to be 8,000 then 16,000 as the code goes on.
  24.  
  25. These both sound as though your source code is not in sync with your .EXE.  
  26. Be sure to recompile after any change, and be sure that you only have a 
  27. single version of the .TPU on your disk, or you may link the wrong one (with 
  28. obsolete debug info) into the executable.
  29.  
  30. Something that I just discovered (but which may well be documented somewhere 
  31. or other) is that you can watch variables in other scopes by prefixing the 
  32. variable name with the scope name; e.g. to watch myvar in myproc even while 
  33. you're in some other procedure (but while myproc is active), watch  
  34. myproc.myvar instead.
  35.  
  36. This works in the BP 7 IDE; I don't know if it's a new addition or not.
  37.  
  38. Duncan Murdoch
  39.