INFO: CodeView Cannot Display #define or EQU Values

ID: Q83095


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, 4.1
  • Microsoft CodeView for OS/2, versions 2.2, 3.0, 3.11, 3.12, 3.5
  • Microsoft CodeView for Windows, versions 3.0, 3.05, 3.06, 3.07, 4.0, 4.01, 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 query words: kbinf pound

Keywords : kbcode kberrmsg kb16bitonly kbCodeView kbDebug kbide kbVC
Version : :2.2,3.0,3.05,3.06,3.07,3.11,3.12,3.14,3.5,4.0,4.01,4.05,4.1,4.25
Platform : MS-DOS OS/2 WINDOWS
Issue type :


Last Reviewed: October 28, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.