Bug 8514 - Expression Evaluator cannot evaluate const
Summary: Expression Evaluator cannot evaluate const
Alias: None
Product: Android
Classification: Xamarin
Component: Debugger ()
Version: 4.2.x
Hardware: PC Windows
: Low enhancement
Target Milestone: ---
Assignee: dean.ellis
Depends on: 11909
  Show dependency tree
Reported: 2012-11-19 17:07 UTC by Yvan Rodrigues
Modified: 2017-07-04 06:13 UTC (History)
5 users (show)

Tags: ac
Is this bug a regression?: ---
Last known good build:

Screenshot (178.87 KB, image/png)
2012-11-19 17:07 UTC, Yvan Rodrigues

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 8514 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Yvan Rodrigues 2012-11-19 17:07:59 UTC
Created attachment 2972 [details]

As seen in the screenshot, EE is unable to evaluate local r or expression r * c.
Yet (see Watch) it is able to evaluate dLon.
Comment 1 Mikayla Hutchinson [MSFT] 2012-11-19 17:14:56 UTC
It's a constant, therefore it's source level only and needs a full source parse.
Comment 2 Vinicius Jarina 2013-07-08 16:36:46 UTC
This is debugger issue, is happening for VS and XS http://screencast.com/t/uK0FCSN3
Comment 3 Mikayla Hutchinson [MSFT] 2013-07-08 18:52:16 UTC
The tooltip doesn't depend on Mono.Debugging, FWIW. That works fine in XS, so it'll need to be fixed on the VS side.
Comment 4 Prashant [MSFT] 2017-07-04 06:13:28 UTC
I have noticed this still happens on VS for Mac 15.2 release.

# Steps to reproduce

1. Create an Android project
2. Initialise a const double value in a method
3. Add the constant to Watch window

# Actual result

Watch window shows the constant value as `Unknow Identifier`

# Expected result

Watch window should shows the constant value

# Version information

Visual Studio Community 2017 for Mac
Version 7.0.1 (build 24)
Installation UUID: cbe44f28-b7cf-4fec-aed3-4f13bc08336d
	Mono (2017-02/5077205) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 500010001


.NET Core
Runtime: /usr/local/share/dotnet/dotnet
SDK: /usr/local/share/dotnet/sdk/1.0.3/Sdks
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/msbuild/15.0/bin/Sdks

Version: 1.5.4
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

Version: (Visual Studio Community)
Android SDK: /Users/prashantvc/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		6.0 (API level 23)
		7.0 (API level 24)
		7.1 (API level 25)

SDK Tools Version: 26.0.2
SDK Platform Tools Version: 26.0.0
SDK Build Tools Version: 26.0.0

Java SDK: /usr
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

Android Designer EPL code available here:

Xamarin Inspector
Version: 1.2.2
Hash: b71b035
Branch: d15-1
Build date: Fri, 21 Apr 2017 17:57:12 GMT

Apple Developer Tools
Xcode 8.3.3 (12175.1)
Build 8E3004b

Version: (Visual Studio Community)

Version: (Visual Studio Community)
Hash: d2270eec
Branch: d15-2
Build date: 2017-05-22 16:30:53-0400

Build Information
Release ID: 700010024
Git revision: 7ab1ca2ced6f584e56b7a0d4d321d00775cd95c9
Build date: 2017-05-19 05:44:51-04
Xamarin addins: 08d17158f3365beee5e60f67999e607cce4b3f93
Build lane: monodevelop-lion-d15-2

Operating System
Mac OS X 10.12.5
Darwin 16.6.0 Darwin Kernel Version 16.6.0
    Fri Apr 14 16:21:16 PDT 2017
    root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64

Enabled user installed addins
MFractor 3.00.05
AddinMaker 1.3.7