Closed dmitrykm closed 6 years ago
This seems like a bug in Xamarin's tools...I'd recommend filing an issue on Bugzilla and cross-referencing the issue. The code is all portable code, we're not doing anything that could be causing that.
Yes, this is very likely a Xamarin/GDB bug. There were some scary discussions like https://bugzilla.xamarin.com/show_bug.cgi?id=14129 in the past. I've referenced this page from https://developercommunity.visualstudio.com/content/problem/49039/android-native-debugging-reports-global-signals.html , but the chances that it will be fixed soon are not high... For those who need to debug unit tests under the native debugger now, the workaround is to use Xamarin.NUnitLite tests (project template is included in VS).
Tags: Android, native, C++, NDK, Visual Studio, xunit, GDB, power fail/restart, crash
Here are the steps:
With this code
I get the following error at startup right after launching the test project:
The target device is x86 Google's emulator.
With
AddTestAssembly(..)
commented out:the project launches. Therefore there is a bug somewhere in
AddTestAssembly(...)
, associated XamarinForms code, and/or the GDB used by VS for Android debugging.