31

Ich habe ein Problem mit dem Android-Debugger (Visual Studio 2015), wie es immer sofort nach dem Start debug (es funktioniert einwandfrei ohne Debugging), hatte ich meine Maschine Visual Studio 2015 wurde zurückgesetzt und neu installiert, aber es hilft nicht. HierXamarin Android (Visual Studio 2015) Konnte keine Verbindung zum Debugger

ist das Protokoll von logcat: monodroid-Debug-Fehler zu akzeptieren stdout und stderr (127.0.0.1:8896) Adresse bereits in Gebrauch

Hier wird das Protokoll von Xamarin log:

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 --- 

Jede Hilfe wird sehr geschätzt!

Antwort

49

hatte ich gleiche Problem und ich konnte Debugger verbinden, indem Sie diese:

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

Kurz:

  • Deaktivieren "Verwenden Sie den schnellen Einsatz (Debug-Modus)" in Android-Projekt -> Eigenschaften -> Android-Optionen -> Verpackung

  • Aktivieren "Auf einen physischen Computer mit einem anderen Computer migrieren nt Prozessor-Version“in Hyper-V-Manager VM gehen -> Einstellungen -> Prozessor -> Kompatibilität

+1

Dies hat den Trick auf meiner Maschine. – Sascha

+1

Vielen Dank für diese – Malachi

+0

Nur die erste "Verwenden Sie schnelle Bereitstellung (Debug-Modus nur für mich! – HelloWorld

1

Für mich ist dies erweist sich als ein Problem von DELL Laptop auf 10 Windows ausgeführt werden, nachdem ich auf Windows zurückgerollt 8.1, funktioniert es gut jetzt

1

Fehler zu akzeptieren stdout und stderr (127.0.0.1: 8896) Bereits verwendete Adresse

Dies wurde Xamarin als Bug 34476 gemeldet.

Verwandte Themen