Bug 51530 - Can't step into mono framework code from iOS project with Cycle 9 builds.
Summary: Can't step into mono framework code from iOS project with Cycle 9 builds.
Status: VERIFIED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Debugger (show other bugs)
Version: XI 10.4 (C9)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: (C9)
Assignee: Manuel de la Peña
URL:
Depends on:
Blocks:
 
Reported: 2017-01-13 23:03 UTC by Jon Goldberger [MSFT]
Modified: 2017-01-27 11:25 UTC (History)
4 users (show)

See Also:
Tags:
Is this bug a regression?: Yes
Last known good build: XI 10.3.1.8 / XS 6.1.4.1


Attachments

Description Jon Goldberger [MSFT] 2017-01-13 23:03:00 UTC
## Description 

On the current stable channel (Cycle 8SR2) if you unset the XS option to "Debug project code only; do not step into framework code" (XS->Preferences->Projects->Debugger), you could then step into the mono framework code. Updating to Cycle 9 on the Alpha channel this no longer works.

## Steps to reproduce

1. Create a new iOS Single View project in XS on Alpha channel (Cycle 9)

2. Open the ViewController.cs file and add the following to the ViewDidLoad method:
var mystring = "Hello World";
var splitString = mystring.Split(' ');

3. Place a breakpoint on the var splitString = mystring.Split(' '); line

4. Deploy the app

5. When the breakpoint hits, click the "step into" button in the Debug toolbar.

Expected result: string.cs file will open with debugger now in the string.Split method in the mono class library.

Actual result: Debugger stays on var splitString = mystring.Split(' '); line of code. 

## Regression status

XS 6.2.0.1718/XI 10.4.0.73: Bad
XS 6.1.4.1/XI 10.3.1.8: Good


## Environment

=== Xamarin Studio Enterprise ===

Version 6.2 (build 1718)
Installation UUID: ceaba76c-db06-4fbd-b326-f69ea53c3e01
Runtime:
	Mono 4.8.0 (mono-4.8.0-branch/9e8f0ee) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 408000429

=== NuGet ===

Version: 3.5.0.0

=== Xamarin.Profiler ===

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

=== Apple Developer Tools ===

Xcode 8.2.1 (11766.1)
Build 8C1002

=== Xamarin.Mac ===

Version: 3.0.0.343 (Visual Studio Enterprise)

=== Xamarin Inspector ===

Not Installed

=== Xamarin.Android ===

Version: 7.1.0.19 (Visual Studio Enterprise)
Android SDK: /Users/jongoldberger/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		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)
		5.0   (API level 21)
		5.1   (API level 22)
		6.0   (API level 23)
		7.0   (API level 24)

SDK Tools Version: 25.2.3
SDK Platform Tools Version: 25.0.1
SDK Build Tools Version: 24.0.3

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

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Xamarin Android Player ===

Version: 0.6.5
Location: /Applications/Xamarin Android Player.app

=== Xamarin.iOS ===

Version: 10.4.0.73 (Visual Studio Enterprise)
Hash: a7f1dc3
Branch: master
Build date: 2017-01-08 14:16:01-0500

=== Build Information ===

Release ID: 602001718
Git revision: 0591bf7fba648f3ece7d03b790ff8c35f494e69d
Build date: 2017-01-09 14:51:42-05
Xamarin addins: cc3da0af6946082a463525b3db698a6b04ce2c2f
Build lane: monodevelop-lion-cycle9

=== Operating System ===

Mac OS X 10.12.2
Darwin Jons-MacBook-Pro.local 16.3.0 Darwin Kernel Version 16.3.0
    Thu Nov 17 20:23:58 PST 2016
    root:xnu-3789.31.2~1/RELEASE_X86_64 x86_64
Comment 1 Manuel de la Peña 2017-01-16 11:25:30 UTC
Confirmed with:

=== Xamarin Studio Community ===

Version 6.2 (build 1718)
Installation UUID: 01060673-5bee-4cf4-a4c2-5e36a18d39a2
Runtime:
	Mono 4.8.0 (mono-4.8.0-branch/9e8f0ee) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 408000429

=== NuGet ===

Version: 3.5.0.0

=== Xamarin.Profiler ===

Not Installed

=== Apple Developer Tools ===

Xcode 8.2.1 (11766.1)
Build 8C1002

=== Xamarin.Mac ===

Version: 3.0.0.343 (Xamarin Studio Community)

=== Xamarin.Android ===

Version: 7.1.0.19 (Xamarin Studio Community)
Android SDK: /Users/mandel/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		4.0.3 (API level 15)
		4.3   (API level 18)
		4.4   (API level 19)
		5.0   (API level 21)
		6.0   (API level 23)

SDK Tools Version: 25.1.6
SDK Platform Tools Version: 24.0.0
SDK Build Tools Version: 23.0.2

Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Xamarin Android Player ===

Version: 0.6.5
Location: /Applications/Xamarin Android Player.app

=== Xamarin Inspector ===

Not Installed

=== Xamarin.iOS ===

Version: 10.4.0.73 (Xamarin Studio Community)
Hash: a7f1dc3
Branch: master
Build date: 2017-01-08 14:16:01-0500

=== Build Information ===

Release ID: 602001718
Git revision: 0591bf7fba648f3ece7d03b790ff8c35f494e69d
Build date: 2017-01-09 14:51:42-05
Xamarin addins: cc3da0af6946082a463525b3db698a6b04ce2c2f
Build lane: monodevelop-lion-cycle9

=== Operating System ===

Mac OS X 10.12.2
Darwin MacBook-Pro.local 16.3.0 Darwin Kernel Version 16.3.0
    Thu Nov 17 20:23:58 PST 2016
    root:xnu-3789.31.2~1/RELEASE_X86_64 x86_64

=== Enabled user installed addins ===

Addin Maker 1.3.2
StyleCop Support 1.0.1.9
Manifest.addin 0.0.0.0
Comment 2 Rolf Bjarne Kvinge [MSFT] 2017-01-16 11:45:31 UTC
Possible causes:

* We stopped shipping the sources files.
* The paths inside the .mdbs points to the wrong location, so XS doesn't find them.
Comment 3 Manuel de la Peña 2017-01-17 11:54:35 UTC
In order to get more information about the bug I have tested the debugger with the following combinations:

XS - 6.2 (build 1718) Alpha channel + Xamarin.iOS (cycle8-xi stable) - Debugger does not work. Gist of the env https://gist.github.com/mandel-macaque/1ccbd449849893b6ca8bbdec04ae11a7


XS - 6.1.4 (build 1) Stable channel + Xamarin.iOS (master - alpha) - Debugger does not work. Gist of the env https://gist.github.com/mandel-macaque/69d3994eda51f84e26979f79da6db156

The sources are indeed present, at least on my testing env, as you can see here https://gist.github.com/mandel-macaque/f427fd54465e8667fd85b1b97714792b 

Looking into the mdb files we have the following paths (System.Core.dll.mdb as an example) https://gist.github.com/mandel-macaque/942053e7cc00582568fe6409eee66b66

Looking into them you can see that the paths used start with /Users/builder/data/lanes/3985/6a925ff6/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/CommonCrypto/AesManaged.g.cs which is not a path present in the machine.
Comment 4 Manuel de la Peña 2017-01-18 18:01:52 UTC
A clean download from the Xamarin page of the system also has the same issue, which is the following env:

=== Xamarin Studio Community ===

Version 6.1.4 (build 1)
Installation UUID: 01060673-5bee-4cf4-a4c2-5e36a18d39a2
Runtime:
	Mono 4.6.2 (mono-4.6.0-branch/ac9e222) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 406020016

=== NuGet ===

Version: 3.4.3.0

=== Xamarin.Profiler ===

Not Installed

=== Apple Developer Tools ===

Xcode 8.2.1 (11766.1)
Build 8C1002

=== Xamarin.Mac ===

Version: 2.10.0.120 (Xamarin Studio Community)

=== Xamarin.iOS ===

Version: 10.3.1.8 (Xamarin Studio Community)
Hash: 7beaef4
Branch: cycle8-xi
Build date: 2016-12-20 02:58:14-0500

=== Xamarin.Android ===

Version: 7.0.2.42 (Xamarin Studio Community)
Android SDK: /Users/mandel/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		4.0.3 (API level 15)
		4.3   (API level 18)
		4.4   (API level 19)
		5.0   (API level 21)
		6.0   (API level 23)

SDK Tools Version: 25.1.6
SDK Platform Tools Version: 24.0.0
SDK Build Tools Version: 23.0.2

Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Xamarin Android Player ===

Version: 0.6.5
Location: /Applications/Xamarin Android Player.app

=== Xamarin Inspector ===

Version: 1.0.0.0
Hash: 1f3067d
Branch: master
Build date: 11/15/2016 10:13:59 PM

=== Build Information ===

Release ID: 601040001
Git revision: e606823f2dd01b4552216c013b597a73bec2068f
Build date: 2017-01-10 17:28:57-05
Xamarin addins: c92d0626d347aaa02839689eaac2961d24c9f446
Build lane: monodevelop-lion-cycle8

=== Operating System ===

Mac OS X 10.12.2
Darwin MacBook-Pro.local 16.3.0 Darwin Kernel Version 16.3.0
    Thu Nov 17 20:23:58 PST 2016
    root:xnu-3789.31.2~1/RELEASE_X86_64 x86_64

=== Enabled user installed addins ===

Addin Maker 1.3.2
StyleCop Support 1.0.1.9
Xamarin Inspector 1.0.0.0
Manifest.addin 0.0.0.0
Comment 5 Manuel de la Peña 2017-01-18 18:04:49 UTC
I'll do a binary search to find when this issues started happening and will identify de commit.
Comment 7 Manuel de la Peña 2017-01-25 17:46:51 UTC
Fix landed in master/d7a9bd462a02ca5251af308dd260ab63de4e28f8 and cycle9/2bcf787f0545d985d84c74c9c98cd7a55bd69d91

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