1
votes

I am new in Xamarin Forms. I create a portable project and run it with out problem. But in App class (portable) or MainActivity OnCreate method in Android project breakpoints not hitting. Also Xamarin for visual studio is "Stable".

What is problem? Does Xamarin Forms (portable) support breakpoints for debug?

2

2 Answers

1
votes

I noticed that when source code folder path consist "@", break points not working. I moved project folder from @Project to another folder without @ and it works fine.

1
votes

Try this, it worked for me:

Right click on your Android project -> Properties -> Build -> Uncheck "Optimize Code".

And

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