How to use break point debugging in XAMARIN Android Visual Studio 2017

Hi Experts,

I am trying use break point for debug my code. I am able to keep break point in code but it is not functioning when I use emulator, I can't able to come back code and debug..

Please suggest how to achieve this scenario...

Thanks & Regards



  • AsurAsur USMember ✭✭✭

    Are you building it is debug mode or release mode .It has to be in debug mode

  • sreedhar_msdaxsreedhar_msdax Member ✭✭✭

    Hi @Asur ,

    It is in debug mode only I have configured as below:

    Android project -> Properties -> Build -> Uncheck "Optimize Code".

    And Android project -> Properties -> Build -> Advanced -> Debugging information -> set it to "Full"

    still no luck for me to debug my code...

  • AsurAsur USMember ✭✭✭

    Just to be clear is it working well with a device or same issue . Also setting Debugging information to full is not required.
    Few things if in properties you can confirm active configuration is debug and under android proj. > Properties > Debugging options is checked and debugger is set to .Net(Xamarin).

  • jezhjezh Member, Xamarin Team Xamurai

    By the way, you should deploy the app directly to your device(e.g. your emulator) and keep them connected, and breakpoints are triggered only when the code runs to where you want it.

Sign In or Register to comment.