Microsoft Knowledge Base |
|
XL: Watch Pane Does Not Use Procedure Call Context |
|
|
Last reviewed: September 13, 1996
Article ID: Q106498 |
|
|
The information in this article applies to:
SYMPTOMSWhen you use the Debug window in the Microsoft Visual Basic Programming System, Applications Edition, the Watch pane may not display the watch expression value in the context of the selected procedure call.
CAUSEWhen you run a procedure in the Immediate pane as part of the debugging process for your macro, it will be added to the list of procedure calls in the Calls dialog box. This functionality helps you trace the operation of your code. However, if you select a procedure in the Calls dialog box that is listed more than once and choose Show, the current value of your watch expression does not change to the context of the selected procedure. For example, if your watch expression is a variable, and you run a procedure in the Immediate pane multiple times, and you change the value of the variable each time, the Calls dialog box cannot be used to trace the different values of the variable. The value of the variable in the Watch pane is the value at the last running of the procedure, regardless of the instance of the procedure call selected in the Calls dialog box.
Steps to Reproduce Behavior
NOTE: Microsoft Visual Basic for MS-DOS and Microsoft Visual Basic for Windows have the same behavior.
REFERENCES"Visual Basic User's Guide," version 5.0, pages 153-169 For more information about Adding Watch Expressions and using a Debugging Checklist, choose the Search button in Visual Basic Help and type:
debugging |
|
KBCategory: kbusage kbtlc
©1997 Microsoft Corporation. All rights reserved. Legal Notices. |