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