Microsoft KB Archive/83095

= INFO: CodeView Cannot Display #define or EQU Values =

Article ID: 83095

Article Last Modified on 10/23/2003

-

APPLIES TO


 * Microsoft CodeView 4.1
 * Microsoft CodeView 3.0
 * Microsoft CodeView 3.0
 * Microsoft CodeView 3.0
 * Microsoft CodeView 4.0
 * Microsoft CodeView 4.01
 * Microsoft CodeView 4.01
 * Microsoft CodeView 4.1
 * Microsoft CodeView 3.0
 * Microsoft CodeView 3.05
 * Microsoft CodeView 3.06
 * Microsoft CodeView 3.07
 * Microsoft CodeView 4.0
 * Microsoft CodeView 4.01
 * Microsoft CodeView 4.1

-



This article was previously published under Q83095



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 

Sample Code
/* Compile options needed: /Zi


 * 1) include 


 * 1) define X 17

void main(void) {  printf(&quot;\n X is = %d&quot;, X); }

Additional query words: kbinf pound

Keywords: kberrmsg kbbug kbide kb16bitonly kbdebug KB83095

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.