Forum Visual Studio


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Memory window in Android debug

wilsonpahlwilsonpahl BRMember ✭✭

Why memory window dont work in Android debug (Xamarin Forms)


  • jezhjezh Member, Xamarin Team Xamurai

    For this question, you can check the official document Use the Memory windows in the Visual Studio debugger

    When we check above document , we will find that the Memory windows are available only during a debugging session.

    Besides, we notice that:

    To open a Memory window

    • Make sure Enable address-level debugging is selected in Tools > Options (or Debug > Options) > Debugging > General.
    • Start debugging by selecting the green arrow, pressing F5, or selecting Debug > Start Debugging.
    • Under Debug > Windows > Memory, select Memory 1, Memory 2, Memory 3, or Memory 4. (Some editions of Visual Studio offer only one Memory window.)

    For more details, you can check above document.

  • wilsonpahlwilsonpahl BRMember ✭✭

    Thanks Jezh for your comment.
    The Microsoft documentation really explains how to view the memory window.
    In theory. But, the memory window still not work.
    In my desktop, and in my laptop, (Visual Studio 2019 or 2017 etc) the issue is the same.
    For every expression, the error is "Unable to evaluate expression".

  • jezhjezh Member, Xamarin Team Xamurai

    For every expression, the error is "Unable to evaluate expression".

    For this question,, you can try to enable optionJust My Code

    Steps: Tools -> Options -> Debugging -> General -> Enable Just My Code
    After that, try to restart your visual studio.

    And there is a similar thread about this, you can check it here:

    Hope it can help you.

  • wilsonpahlwilsonpahl BRMember ✭✭

    Thank you Jezh.
    But, I did all of this, and still not work.
    My instalation is normal, VS 2019 normal,
    Windows 10 Pro, etc.

  • wilsonpahlwilsonpahl BRMember ✭✭

    I formatted my computer,
    Made a new installation of Windows 10 Pro
    Installed Visual Studio 2019 Community
    Created a new solution of Xamarin Forms
    Enabled address level debugging
    Enabled just my code.
    All the others debug windows works, but
    Memory Window still says "Unable to evaluate expression".
    Thanks for help.

Sign In or Register to comment.