首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Xamarin Android (Visual 2015)无法连接到调试器

Xamarin Android (Visual 2015)无法连接到调试器
EN

Stack Overflow用户
提问于 2015-09-15 15:03:26
回答 6查看 14.1K关注 0票数 34

我对android调试器(Visual 2015)有一个问题,因为它总是在启动调试后立即停止(它在没有调试的情况下工作正常),我让我的机器重置并重新安装了Visual 2015,但是它没有帮助。

这里是logcat:monodroid调试错误的日志,接受stdout和stderr (127.0.0.1:8896)已经在使用的地址。

这里是来自Xamarin日志的日志:

代码语言:javascript
复制
Mono.Debugging.Soft.ConnectionException: Could not connect to the debugger. ---> Mono.Debugger.Soft.VMDisconnectedException: Exception of type 'Mono.Debugger.Soft.VMDisconnectedException' was thrown.

Server stack trace: 
at Mono.Debugger.Soft.Connection.SendReceive(CommandSet command_set, Int32 command, PacketWriter packet)
at Mono.Debugger.Soft.Connection.VM_GetVersion()
at Mono.Debugger.Soft.Connection.Connect()
at Mono.Debugger.Soft.VirtualMachine.connect()
at Mono.Debugger.Soft.VirtualMachineManager.Connect(Connection transport, StreamReader standardOutput, StreamReader standardError)
at Mono.Debugger.Soft.VirtualMachineManager.ConnectInternal(Socket dbg_sock, Socket con_sock, IPEndPoint dbg_ep, IPEndPoint con_ep)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

Exception rethrown at [0]: 
at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
at Mono.Debugger.Soft.VirtualMachineManager.ConnectCallback.EndInvoke(IAsyncResult result)
at Mono.Debugger.Soft.VirtualMachineManager.EndConnect(IAsyncResult asyncResult)
at Mono.Debugging.Soft.SoftDebuggerSession.<>c__DisplayClass9.b__8(IAsyncResult ar)
--- End of inner exception stack trace ---

任何帮助都是非常感谢的!

EN

回答 6

Stack Overflow用户

回答已采纳

发布于 2016-04-10 12:19:16

我也遇到了同样的问题,我能够通过以下方式连接调试器:

http://dotnetbyexample.blogspot.cz/2016/02/fix-for-could-not-connect-to-debugger.html

简言之:

  • 禁用Android项目-> Properties -> Android选项->打包中的“使用快速部署(仅调试模式)”
  • 在Hyper-V管理器中启用“迁移到具有不同处理器版本的物理计算机”到VM ->设置->处理器->兼容性。
票数 61
EN

Stack Overflow用户

发布于 2016-01-18 15:15:38

对我来说,这是戴尔笔记本电脑在Windows 10上运行的问题,在我回到Windows8.1之后,它现在运行得很好

票数 1
EN

Stack Overflow用户

发布于 2016-01-22 01:31:43

错误接受已在使用的stdout和stderr (127.0.0.1:8896)地址

这已被报道为Bug 34476

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32589438

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档