Bug 56503 - Cannot debug application on either Android or iOS from Visual Studio 2015 after 15.2 upgrade.
Summary: Cannot debug application on either Android or iOS from Visual Studio 2015 aft...
Status: RESOLVED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: General ()
Version: 4.5.0 (15.2)
Hardware: PC Windows
: --- blocker
Target Milestone: ---
Assignee: Joaquin Jares
URL:
Depends on:
Blocks:
 
Reported: 2017-05-16 15:33 UTC by cwiggins
Modified: 2017-05-23 14:03 UTC (History)
6 users (show)

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

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 on Developer Community 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.

Related Links:
Status:
RESOLVED FIXED

Description cwiggins 2017-05-16 15:33:06 UTC
# Steps to reproduce
Build and debug existing Xamarin Forms project (small prototype app as well as a larger app), deploying to either device (Samsung S5) or emulator (Genysys Android or iOS simulator)

# Expected behavior
Application runs and breakpoints function. It worked properly before the May 10 update - Stable release 15.2

# Actual behavior
Applocation immediately exits and a window with the below exception is displayed - "connection with the debugger has been lost...."

# Supplemental info (logs, images, videos)
Clide.OutputWindowManager|Stop|0|Initializing trace output pane 'Debug'.|2017-05-16 14:21:13Z
Mono.Debugging.VisualStudio.MonoDebuggerLauncher|Verbose|0|Entering constructor for: Mono.Debugging.VisualStudio.MonoDebuggerLauncher|2017-05-16 14:21:15Z
Mono.Debugging.VisualStudio.MonoDebuggerLauncher|Verbose|0|Entering Start() for: Mono.Debugging.VisualStudio.MonoDebuggerLauncher|2017-05-16 14:21:15Z
Mono.Debugging.VisualStudio.DebugLauncher|Verbose|0|Entering Launch for: Mono.Debugging.VisualStudio.DebugLauncher|2017-05-16 14:21:15Z
Xamarin.VisualStudio.IOS.XamarinIOSPackage|Error|0|MonoAndroidDebuggerSession
System.IO.FileNotFoundException: Could not load file or assembly 'Mono.Cecil.Mdb, Version=0.9.6.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. The system cannot find the file specified.
File name: 'Mono.Cecil.Mdb, Version=0.9.6.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756'
   at Mono.Debugging.Soft.SoftDebuggerSession.CheckBetterMatch(TypeMirror type, String file, Int32 line, Int32 column, Location found)
   at Mono.Debugging.Soft.SoftDebuggerSession.FindLocationByMethod(MethodMirror method, String file, Int32 line, Int32 column, Boolean& insideTypeRange)
   at Mono.Debugging.Soft.SoftDebuggerSession.FindLocationByType(TypeMirror type, String file, Int32 line, Int32 column, Boolean& genericMethod, Boolean& insideTypeRange)
   at Mono.Debugging.Soft.SoftDebuggerSession.ResolveBreakpoints(TypeMirror type)
   at Mono.Debugging.Soft.SoftDebuggerSession.HandleTypeLoadEvents(TypeLoadEvent[] events)
   at Mono.Debugging.Soft.SoftDebuggerSession.HandleEventSet(EventSet es)
   at Mono.Debugging.Soft.SoftDebuggerSession.EventHandler()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
|2017-05-16 14:21:26Z
Mono.Debugging.VisualStudio.MonoDebuggerLauncher|Error|0|Mono.Debugging.Soft.DisconnectedException: The connection with the debugger has been lost. The target application may have exited. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Mono.Cecil.Mdb, Version=0.9.6.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. The system cannot find the file specified.
   at Mono.Debugging.Soft.SoftDebuggerSession.CheckBetterMatch(TypeMirror type, String file, Int32 line, Int32 column, Location found)
   at Mono.Debugging.Soft.SoftDebuggerSession.FindLocationByMethod(MethodMirror method, String file, Int32 line, Int32 column, Boolean& insideTypeRange)
   at Mono.Debugging.Soft.SoftDebuggerSession.FindLocationByType(TypeMirror type, String file, Int32 line, Int32 column, Boolean& genericMethod, Boolean& insideTypeRange)
   at Mono.Debugging.Soft.SoftDebuggerSession.ResolveBreakpoints(TypeMirror type)
   at Mono.Debugging.Soft.SoftDebuggerSession.HandleTypeLoadEvents(TypeLoadEvent[] events)
   at Mono.Debugging.Soft.SoftDebuggerSession.HandleEventSet(EventSet es)
   at Mono.Debugging.Soft.SoftDebuggerSession.EventHandler()
   --- End of inner exception stack trace ---|2017-05-16 14:21:26Z

# Test environment (full version information)
Microsoft Visual Studio Professional 2015
Version 14.0.24720.00 Update 1
Microsoft .NET Framework
Version 4.6.01586
Installed Version: Professional
Microsoft Visual Studio Tools for Applications 2015   00322-50000-67212-AA101
Microsoft Visual Studio Tools for Applications 2015
Visual C# 2015   00322-50000-67212-AA101
Microsoft Visual C# 2015
Visual C++ 2015   00322-50000-67212-AA101
Microsoft Visual C++ 2015
Mono Debugging for Visual Studio   Mono.Debugging.VisualStudio
Support for debugging Mono processes with Visual Studio.

NuGet Package Manager   3.3.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

Xamarin   4.5.0.443 (c871575)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   7.3.0.13 (448f54f)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS   10.10.0.30 (30b6e87)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 2 cwiggins 2017-05-16 18:48:02 UTC
I reverted to the previous stable release and no longer have this problem. 

Xamarin   4.4.0.34 (3f99c5a)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   7.2.0.7 (b16fb82)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS   10.8.0.174 (7656cc6)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 3 Joaquin Jares 2017-05-23 14:03:51 UTC
Cecil has been replaced for 15.3. This is fixed now and will be available soon.