2017-05-12 59 views
2

我最近更新了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

+0

[你想使用这个库](https://github.com/jbevain/cecil)?谷歌似乎是一个包名 – Zoe

+0

我已经添加了包到我的问题,请检查。 – hotspring

+0

据我了解,调试器遇到错误。重新启动您的IDE(也许是电脑),并尝试再次调试 – Zoe

回答

0

我是有最新Xamarin更新了同样的问题,我使用Visual Studio 2015和问题安装Visual Studio更新3后得到解决。