31

Mam problem z Androidem Debuggerem (Visual Studio 2015), ponieważ zawsze zatrzymuje się natychmiast po uruchomieniu debugowania (działa dobrze bez debugowania), miałem swoją maszynę zresetuj i ponownie zainstaluj program Visual Studio 2015, ale to nie pomoże.Xamarin Android (Visual Studio 2015) Nie można połączyć się z debugerem

Oto log z LogCat: monodroid-debug błąd przyjmując stdout i stderr (127.0.0.1:8896) Adres już w użyciu

Oto log z Xamarin zalogować:

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

Każda pomoc jest doceniana!

Odpowiedz

49

miałem ten sam problem i udało mi się połączyć debugger, postępując w ten sposób:

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

W skrócie:

  • Wyłącz "Użyj szybkiego wdrożenia (tryb debugowania tylko)" w Projekt Android -> Właściwości -> Opcje Androida -> Opakowanie

  • Włącz "Migracja do fizycznego komputera z różnicą nt wersja procesora”w Hyper-V Manager przejdź do VM -> Ustawienia -> Procesor -> Zgodność

+1

Zrobiłem to na mojej maszynie. – Sascha

+1

Dziękuję za to – Malachi

+0

Tylko pierwsza "Użyj szybkiego wdrożenia (tylko tryb debugowania) zrobiła to za mnie! – HelloWorld

1

Dla mnie ta okazuje się być problem z laptopem Dell działa w systemie Windows 10, po tym jak przywracana do Windows 8.1, współpracuje teraz

1

Błąd zaakceptowaniem stdout i stderr (127.0.0.1: 8896) Adres już w użyciu

Zostało to zgłoszone Xamarin jako Bug 34476.

Powiązane problemy