Bug 31467 - Extension methods while debugging
Summary: Extension methods while debugging
Status: CONFIRMED
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
URL:
Depends on:
Blocks:
 
Reported: 2015-06-29 11:02 UTC by Marius Ungureanu
Modified: 2017-09-01 14:30 UTC (History)
2 users (show)

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


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

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
Runtime:
	Mono 4.0.2 ((detached/c99aa0c)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400020005

=== Xamarin.Android ===

Version: 5.1.4.16 (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: 8.10.2.39 (Business Edition)
Hash: 4e8928a
Branch: master
Build date: 2015-06-29 11:03:42-0400

=== Xamarin.Mac ===

Version: 2.0.2.39 (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.

Note You need to log in before you can comment on or make changes to this bug.