Xamarin Android Exception causes “Frame not in module”

陌路散爱 提交于 2019-12-01 21:05:18

this comes because debugger can't go to other namespace so if your code calling other methods from other namespace go to it and add a point

I work with Xamarin.forms and have the problem with my .droid project...
The error-messages “frame not in module” appears every time, if VS tries to investigate “foreign” code. This, although I have set the option “Enable Just My Code” in the options to the debugger (so... for me it’s a bug).

However, a simple workaround works for me:
In debug mode simply click on the button step over (F10) instead of “step into” (note: this is the button on the right of step over in the upper icon bar of VS).

This link told me what I needed to know: https://developer.xamarin.com/guides/android/deployment,_testing,_and_metrics/android_debug_log/

You just go to View > Other Windows > Android Device Logging from within Visual Studio. I found it best to use text view.

If there is a better way then please let me know though.

Only this worked for me on VS 2015:

  1. open "DEBUG -> Windows -> Exception Settings"

  2. tick the parent option "Common Language Runtime Exceptions" so all its children are ticked.

(same works with VS 2013 but on step 1. open "DEBUG -> Exceptions)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!