Forum Visual Studio

Memory window in Android debug

wilsonpahlwilsonpahl BRMember ✭✭

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

Answers

  • 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".
    Regards

  • 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: https://stackoverflow.com/questions/23763921/unable-to-evaluate-the-expression-in-visual-studio-2012-debug-mode

    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.