Bug 31467 - Extension methods while debugging
Summary: Extension methods while debugging
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Debugger (show other bugs)
Version: 5.9
Hardware: PC Mac OS
: Low enhancement
Target Milestone: master
Assignee: Bugzilla
Depends on:
Reported: 2015-06-29 11:02 UTC by Marius Ungureanu
Modified: 2017-09-01 14:30 UTC (History)
2 users (show)

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

Debugger issue (139.57 KB, image/png)
2015-06-29 11:02 UTC, Marius Ungureanu
Test Sample (15.55 KB, application/zip)
2015-06-30 06:12 UTC, Rajneesh Kumar

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 31467 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 Marius Ungureanu 2015-06-29 11:02:12 UTC
Created attachment 11769 [details]
Debugger issue

While debugging and stopped at a breakpoint, the example below shows that method does not exist, while it's declared as extension method:

var str = new NSAttributedString ("My Text Here");
nfloat size = str.GetSize().Height;

Hovering over Height will show you that no method exists, while GetSize() is correctly evaluated with the Editor resolver (not the debugger one)
Comment 1 Rajneesh Kumar 2015-06-30 06:12:51 UTC
Created attachment 11789 [details]
Test Sample

I have checked this issue and able to reproduce this. To reproduce this issue I have followed the steps and instruction provided in bug description.  I have attached the test sample.

Steps I followed:

1. Open attached test sample in XS.
2. Verify that  breakpoint is set in line no: 22 in AppDelegate.cs.
3. Run the application, breakpoint will hit.
4. Hovering over Height will show you that no method exists.

Screencast: http://www.screencast.com/t/LGKDqT8ad

Ide Logs: https://gist.github.com/Rajneesh360Logica/d63f2ccbacb3fa90fd20

Environment Info:

=== Xamarin Studio ===

Version 5.9.4 (build 5)
Installation UUID: 011d70a5-dede-428b-ab04-ef451c2e539d
	Mono 4.0.2 ((detached/c99aa0c)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400020005

=== Xamarin.Android ===

Version: (Business Edition)
Android SDK: /Users/MM/Desktop/android-sdk-macosx
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Apple Developer Tools ===

Xcode 6.2 (6776)
Build 6C131e

=== Xamarin.iOS ===

Version: (Business Edition)
Hash: 4e8928a
Branch: master
Build date: 2015-06-29 11:03:42-0400

=== Xamarin.Mac ===

Version: (Business Edition)

=== Build Information ===

Release ID: 509040005
Git revision: 8010a90f6e246b32364e3fb46ef2c9d1be9c9a2b
Build date: 2015-06-08 16:52:06-04
Xamarin addins: 7e93e9c3503f28770f23ce1b7eafd829919f18e8

=== Operating System ===

Mac OS X 10.9.5
Darwin MacMini.local 13.4.0 Darwin Kernel Version 13.4.0
    Sun Aug 17 19:50:11 PDT 2014
    root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64
Comment 2 Jeffrey Stedfast 2015-08-02 12:55:40 UTC
Right now we only support LINQ extension methods because supporting other extension methods is tricky.