android.net-corevisual-studio-2022uno-platform

What Is "Loaded by runtime" in the Visual Studio Modules Window, and How Does One Access This?


I am building my first Android application with Uno and am attempting to debug a component within Uno's authentication assembly. Unfortunately I am having trouble accessing its symbol file and successfully loading any breakpoints associated with it.

To start, when I view the assemblies in Modules, it appears that all modules are "Loaded by runtime" which I have never seen before:

list of loaded modules in Android Uno application

Additionally, when I right-click a module from this list and select Symbol Load Information...:

displaying Symbol Load Information... in the right-click menu of a loaded module

Nothing happens and no symbol load information or any further information is displayed. Is this expected? This seems like a bug.

How do I access the symbol file and ensure that breakpoints load as expected as they do with Windows-based DLLs?

Thank you for any assistance.


Solution

  • Looks like this is "by design" in Visual Studio: https://github.com/unoplatform/uno/discussions/19179#discussioncomment-11859578

    The Visual Studio debugger does not support source link for assemblies coming from nuget packages. Our VS Code extension does, though.

    As for why Visual Studio Code supports this and Visual Studio does not:

    It's available in Code because Uno is handling the debugging. It's been an ask from Microsoft for many years, but it's not been prioritized so far.