CodeView Cannot Display #define or EQU ValuesLast reviewed: July 17, 1997Article ID: Q83095 |
2.20 3.00 3.11 3.14 4.0x 4.10 | 2.20 3.00 3.1x 3.50 | 3.x 4.0x 4.10 4.25
MS-DOS | OS/2 | WINDOWSkbtool kbcode kberrmsg The information in this article applies to:
The Microsoft CodeView debugger (CV) cannot display any value declared in either a C-language #define preprocessor statement or in an assembly language EQU or TEXTEQU equate. These values cannot be displayed in the Local window, the Watch window, the Command window, or as a Quick Watch value. The Microsoft C compiler and the Microsoft Macro Assembler (MASM) do not produce any symbolic information for these statements. Without symbolic information, CodeView has no information about these symbols, and cannot display them. In the sample code below, for example, attempting to put a watch on X generates the following message:
X <Watch Expression Not In Context> Sample Code
/* Compile options needed: /Zi */ #include <stdio.h> #define X 17 void main(void){ printf("\n X is = %d", X);}
|
Additional reference words: kbinf 2.20 3.00 3.50 4.00 4.10 pound
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |