PRB: Debugger Cannot Evaluate Out of Scope Named ConstantsLast reviewed: April 12, 1996Article ID: Q149747 |
The information in this article applies to:
SYMPTOMSThe debugger's watch window cannot evaluate expressions that contain named constants that have gone out of scope. Attempting to use a variable evaluation expression containing a locally undefined named constant in one of the watch windows causes the message "EE2347: Undefined variable" to be returned in the corresponding value field.
STATUSThis behavior is by design.
MORE INFORMATIONThe scope context operator allows you to view information about module variables that have gone out of scope. However, using the scope context operator in this manner does not apply to named constants. You cannot use the scope context operator to evaluate named constants.
Steps to Illustrate Behavior
Sample Code! Compile options needed: /Zi
MODULE MY_MODULE INTEGER H CONTAINS SUBROUTINE MODULE_PROC PARAMETER(Y=9.0) CALL INTERNAL_PROC CONTAINS SUBROUTINE INTERNAL_PROC INTEGER N N = Y + H END SUBROUTINE INTERNAL_PROC END SUBROUTINE MODULE_PROC END MODULE MY_MODULE PROGRAM TEST USE MY_MODULE CALL MODULE_PROC END PROGRAM TEST |
Additional reference words: 4.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |