31

मैं एंड्रॉयड डिबगर (विजुअल स्टूडियो 2015) के रूप में यह हमेशा डिबग शुरू करने के बाद तुरंत बंद हो जाता है के साथ एक समस्या है (यह डिबगिंग के बिना बस ठीक काम करता है) से कनेक्ट नहीं किया जा सका, मैं अपने मशीन था रीसेट और विजुअल स्टूडियो 2015 को पुनर्स्थापित किया गया लेकिन यह मदद नहीं करता है।Xamarin एंड्रॉयड (विजुअल स्टूडियो 2015) डीबगर

यहाँ logcat से लॉग है: monodroid-डिबग stdout और stderr (127.0.0.1:8896) स्वीकार करने में त्रुटि पहले से प्रयोग में पता

यहाँ Xamarin से लॉग लॉग ऑन है:

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

किसी भी मदद की बहुत सराहना की है!

उत्तर

49

मैं एक ही मुद्दा था और मैं इस का पालन करते हुए डिबगर कनेक्ट कर सकता था:

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

संक्षेप में:

  • अक्षम में "तेजी से तैनाती (डिबग मोड केवल) का उपयोग करें" एंड्रॉयड परियोजना -> गुण -> एंड्रॉयड विकल्प -> पैकेजिंग

  • सक्षम करें "एक differe के साथ एक भौतिक कंप्यूटर में माइग्रेट करें NT प्रोसेसर संस्करण "हाइपर-वी प्रबंधक में वी एम के लिए जाने -> सेटिंग्स -> प्रोसेसर -> संगतता

+1

यह मेरी मशीन पर चाल है। – Sascha

+1

इस – Malachi

+0

के लिए धन्यवाद केवल पहले मैक के लिए दृश्य स्टूडियो का उपयोग कर मेरे लिए चाल किया! – HelloWorld

1

मेरे लिए, यह पता चला है DELL लैपटॉप Windows 10 पर चल रहा है, के बाद मैं Windows 8.1 करने के लिए वापस लुढ़का का एक मुद्दा हो सकता है, यह काम करता है ठीक अब

1

त्रुटि को स्वीकार करने stdout और stderr (127.0.0.1: 8896) पता पहले से ही उपयोग में है

यह Xamarin को Bug 34476 के रूप में सूचित किया गया है।

0

हालांकि प्रश्न दृश्य स्टूडियो 2017 संस्करण 15.2 इस मुद्दे के साथ हाल ही में वी.एस. 2015 के लिए है। दृश्य स्टूडियो को अनइंस्टॉल करना और पिछले काम करने वाले वीएस को डाउनग्रेड करने से मेरे मामले में मदद मिली। आशा है कि वे जल्द ही बग ठीक करेंगे। https://forums.xamarin.com/discussion/95555/how-to-downgrade-visual-studio-2017-version-15-2-to-15-0

संबंधित मुद्दे