Xamarin Android Exception throws "Frame not in module"

I am new to Xamarin and am currently developing my first Android app.

I deliberately threw an exception as follows:

throw new Exception("Whoops");

When I am on this line, the emulator does not give any indication that a problem has occurred. If I set a breakpoint in the above line in Visual Studio and then stepping over it, I get the following error:

The frame is not in the module. The current stack stack was not found in the loaded module.

How can I get Visual Studio to tell me what went wrong? At the moment, I can not find any traces of the exception.

+4
source share
4 answers

, , , ,

+1

Xamarin. .droid...
"frame not in module" , VS "" . , " " ( ... ).

:
step over (F10) "step into" ( : VS).

0

VS 2015:

  • "DEBUG → Windows → "

  • Check the parent option, “Exceptions to the total runtime of the language,” so that all of its children are checked.

(the same thing works with VS 2013, but in step 1. open "DEBUG -> Exceptions)

-1
source

Source: https://habr.com/ru/post/1627162/


All Articles