Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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 on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 4396 [details]
Steps to Reproduce:
1. Set a breakpoint on line 27 of Program.cs - 'Console.WriteLine(s);'
2. Debug the program
3. When the debugger breaks at the line, hover over the variable s to inspect it's value
Expected Result: s has a value of "Hello from Bar"
Actual Result: Hovering over 's' displays "string s", local variables has no variable s, and if s is set as a Watch variable, it displays as "The name 's' does not exist in the current context".
Inspection works fine in non-async methods, for instance breaking on line 17 and inspecting the value of z after the call to 'int z = BarMath(1).Result'
Looks like the CorDebugger needs to include hoisted variables in the locals
Aside from having to step multiple times (will fix this), this issue is fixed and will be included in future releases.
I have verified this issue. I debug attached project and followed steps mentioned in bug description and noticed that when I am mouse hovering over 's' getting same Actual result as mentioned in bug description.
Screen cast: http://screencast.com/t/oVDwDl0hC
Hence I am reopening this issue.
=== Xamarin Studio ===
Version 4.2.4 (build 266)
Installation UUID: 400bab6b-f5cd-4e84-a1d1-39f9d6414cb1
Microsoft .NET 4.0.30319.18449
GTK+ 2.24.22 (MS-Windows theme)
=== Build Information ===
Release ID: 402040266
Git revision: 57fa6b7639703775ae1d5c46536e42ab424cb177
Xamarin addins: eee141c29724a19529e77b8e743086d95b29f5ba
=== Operating System ===
Windows 6.2.9200.0 (64-bit)
This is fixed on master.