Forum Visual Studio

Debugger doesn't work, "Frame not in module"?


Start Debugging on my application in Visual Studio with my Android device, it will display every time this message.
"Frame not in module
the current stack frame was not found in a module.source conn't be shown for this location.
to always view disassembly for missing source files,change the setting in the options dialog".

How can I get this to work?


  • ClintStLaurentClintStLaurent USUniversity ✭✭✭✭✭

    Debugging in Android does work. I do it all day long with Xamarin.Forms solutions.

    Frame Not in Module does happen on occassion as a result of debugging going beyond your code. You can't step into a line by line debug of the LocationServices NuGet package for example. You can't step through the generated code from XAML bindings for example. Everything has limits.

    In your droid project, open the MainActivity.cs file.

            protected override void OnCreate(Bundle bundle)
                base.OnCreate(bundle);//Put a breakpoint here
                Forms.Init(this, bundle);
                Xamarin.FormsMaps.Init(this, bundle);

    If you put a breakpoint on the first line of the ``OnCreate``` method then hit F5 to start debugging, you shot break at this point and be able to walk through line by line with F10

Sign In or Register to comment.