CodeView Cannot Display #define or EQU Values

Last reviewed: July 17, 1997
Article 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                | WINDOWS
kbtool kbcode kberrmsg

The information in this article applies to:

  • Microsoft CodeView for MS-DOS, versions 2.2, 3.0, 3.11, 3.14, 4.0, 4.01, 4.05, and 4.1
  • Microsoft CodeView for OS/2, versions 2.2, 3.0, 3.11, 3.12, and 3.5
  • Microsoft CodeView for Windows, versions 3.0, 3.05, 3.06, 3.07, 4.0, 4.01, and 4.1
  • Microsoft CodeView for Win32s, version 4.25

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
KBCategory: kbtool kbcode kberrmsg
KBSubcategory: CvwIss VWBIss
Keywords : CvwIss kb16bitonly VWBIss kbcode kberrmsg kbtool
Version : 2.20 3.00 3.11 3.14 4.0x 4.10 |
Platform : MS-DOS OS/2 WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 17, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.