与调试器的连接已丢失

时间:2017-05-12 18:23:15

标签: android xamarin xamarin.android

我最近更新了Xamarin Android(版本4.5.0.443)。当我通过Visual Studio部署代码时,应用程序安装成功但由于以下问题我无法调试。

有没有人有任何想法?

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.
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()

我的项目中包含以下包 enter image description here

1 个答案:

答案 0 :(得分:0)

我遇到了与最新的Xamarin更新相同的问题,我使用的是Visual Studio 2015,安装Visual Studio update 3后问题得以解决。