Microsoft KB Archive/199907

= DOC: Debugger.Evaluate Method Doesn't Evaluate Functions =

Article ID: 199907

Article Last Modified on 12/8/2003

-

APPLIES TO


 * Microsoft Visual C++ 5.0 Enterprise Edition
 * Microsoft Visual C++ 6.0 Enterprise Edition
 * Microsoft Visual C++ 5.0 Professional Edition
 * Microsoft Visual C++ 6.0 Professional Edition
 * Microsoft Visual C++ 6.0 Standard Edition
 * Microsoft Developer Network Visual Studio Edition 6.0
 * Microsoft Developer Network Visual Studio Edition 97
 * MSDN 2003 Universal Edition

-



This article was previously published under Q199907



SUMMARY
The MSDN library documentation for the Evaluate method of the Debugger object incorrectly states that this method is functionally identical to typing in the Visual C++ debugger's Watch window. For example, the Watch window can evaluate C/C++ function calls and the Evaluate method cannot.



MORE INFORMATION
Launch the MSDN library and follow this path:

Visual C++ documentation Using Visual C++ Visual C++ User's Guide Automating Tasks in Visual Studio Developer Studio Objects Reference: Developer Studio Objects Objects Debugger Object

Click Evaluate. The documentation states the following:

Evaluates an expression, as if you typed it in the Visual C++ debugger's Watch window.

This is incorrect. Debugger.Evaluate cannot evaluate functions during a debug session of C/C++ code in Visual C++. However, Debugger.Evaluate can evaluate such mathematical expressions as "2+2".

Keywords: kbbug kbide kbdebug kbdocerr KB199907

-

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

© Microsoft Corporation. All rights reserved.