7

So I am needing to do some debugging with Xamarin Android. This wouldn't be such a problem if the emulator wasn't so slow. So, I looked at setting up the x86 emulator, but because I'm running Xamarin within VMWare (host machine is Linux), that won't work. My best bet is to install either the x86 accelerated android, or use something like Android-x86 from my host machine.

How could I get Xamarin to connect to a device that not's running on the same machine though?

Morrison Chang
  • 11,691
  • 3
  • 41
  • 77
Earlz
  • 62,085
  • 98
  • 303
  • 499
  • I to am using Xarmin and I found that coding on an emulator was painful. I strongly recomend you debug on a phone if you have access to one. – Cam Connor Aug 15 '13 at 14:59
  • I do, but I never had any luck getting Xamarin debugging to work on a physical device either :/ Currently chasing down how to fix one of it's many bugs that's completely blocking me from doing anything though – Earlz Aug 15 '13 at 15:01
  • Are you using the xarmin IDE? – Cam Connor Aug 15 '13 at 15:03
  • I'm using both XamarinStudio and Visual Studio... right now, Visual Studio can't open any Xamarin projects though for some reason (just constant "waiting for background operation to complete") – Earlz Aug 15 '13 at 15:04
  • I have a Nexus 4 phone I can test it on, but I've never had any luck with getting debugging to work right. I *can* deploy release applications and such through Xamarin, but debugging them never works. Breakpoints and such are just never hit – Earlz Aug 15 '13 at 15:06
  • Did u enable debuggin on ur phone? – Cam Connor Aug 15 '13 at 15:26
  • Take a look at: http://stackoverflow.com/questions/2604727/how-can-i-connect-to-android-with-adb-over-tcp – Cheesebaron Aug 15 '13 at 16:35

2 Answers2

8

It's possible to configure ADB to debug over the network instead of USB. Check out Xamarin's document titled Setup Device for Development, and scroll down to the section titled Connect the Device to Computer for directions on how to do so.

Tom Opgenorth
  • 1,511
  • 1
  • 12
  • 19
0

This is pretty basic but have you enabled USB debugging on your Android phone?

http://www.wugfresh.com/faq/how-do-i-enable-usb-debugging-on-android-4-2-the-developer-options-menu-item-is-gone/

follow those instructions if you havent...

Cam Connor
  • 1,231
  • 2
  • 25
  • 40