KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q67008: Syntax Error When Watching Variables That Begin with "P"

Article: Q67008
Product(s): See article
Version(s): 2.20 2.30 | 2.20 2.30
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | buglist2.10 buglist2.20 fixlist3.00 | mspl13_basic
Last Modified: 18-NOV-1990

When the following command is entered in the Command window to watch a
variable that begins with the letter "p", the result is a syntax
error:

> W pvariable

The syntax for watching a memory location is W[type] range, where the
type and range specify the format and length of memory to be
displayed, respectively.

When no type is declared, as in the above example, the default type is
used. The default type will be the last type used by a Dump, Enter,
Watch Memory, or Tracepoint Memory command. If none of these commands
has been used during the session, the default type is byte.

The workaround for this problem is to explicitly declare a type in the
watch statement, for example:

> WB pvariable.

Microsoft has confirmed this to be a problem in Microsoft CodeView
versions 2.x. This problem has been corrected in Microsoft CodeView
version 3.00.

Additional keywords: buglist2.30 buglist2.35

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.

Copyright Microsoft Corporation 1986-2002.