On a fresh installation of Visual Studio 2015 I created an Android application and Android native library. Functions from native library are referenced in the app code through DllImport directives.
When I select "Xamarin debugger" for main app and start debugging, I am able to stop on breakpoints in C# code, but debugger doesn't step into native function calls.
When I select "Microsoft debugger" breakpoints don't work at all. During debugging session all breakpoints are marked as disabled and when I point to them the following message occurs:
The breakpoint will not currently be hit. Module containing this breakpoint has not yet loaded.
What do I need to do to debug native Android libraries in VS2015?
I had the same problem and I think I've figured it out.
The Xamarin debugger can only debug managed (i.e. C#) code. Breakpoints only work with the Xamarin debugger if the project being debugged is a managed project. They don't work if the project is a native app or native library.
The Microsoft debugger can only debug native (i.e. C/C++) code. Breakpoints only work with the Microsoft debugger if the project being debugged is a native app or native library, or if it is attached to an already-running Android process.
I've been able to use both debuggers simultaneously to debug a hybrid (managed+native) app, by following this procedure:




I made a short video to demonstrate this: Android debugging managed and native code using Visual Studio 2015
The tip described in this post solved my problem:
SOLUTION:
And we were right! The issue is related to Hyper-V on Windows 10 when running on the latest Intel (Skylake) processors. (Thanks Mike, from the VS Android Emulator team, who suggested this possible workaround).
Hot to Fix it: