Quick Links

How to debug Xamarin Android in VS 2017

Hi experts,
I am working on Xamarin Android in VS 2012. I am unable to debug my code using break point . Once I deploy project directly android emulator is opening if I click on button its not taking me to code where I kept break point.

Please suggest me how to overcome this.

Thanks in advance

Regards,
Sree

0

Answers

@sreedhar_msdax said:
Hi experts,
I am working on Xamarin Android in VS 2012. I am unable to debug my code using break point . Once I deploy project directly android emulator is opening if I click on button its not taking me to code where I kept break point.

Please suggest me how to overcome this.

Thanks in advance

Regards,
Sree

Time to upgrade to VS 2017

Also an alternative to debugging might be to have

System.Diagnostics.Trace.WriteLine("Hello from Android!");

lines in your code. Then from command line you can watch logcat output by calling:

Thanks for reply..
I am sorry that was my typing mistake and I am using VS 2017 only on windows 10 machine..
And could you please mention where can I find bun and obj folders?
In VS project or VS installed path?

@sreedhar_msdax said:
Hi experts,
I am working on Xamarin Android in VS 2012. I am unable to debug my code using break point . Once I deploy project directly android emulator is opening if I click on button its not taking me to code where I kept break point.

Please suggest me how to overcome this.

Thanks in advance

Regards,
Sree

Time to upgrade to VS 2017

Also an alternative to debugging might be to have

System.Diagnostics.Trace.WriteLine("Hello from Android!");

lines in your code. Then from command line you can watch logcat output by calling: