Skip to content

Debugger not debugging some variables correctly #7009

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


Testing with a MAUI RC2 project in VS4Mac 2022 Preview (build 8754)

Simply in the MainPage class I am trying to debug the result of bleService.GetPlatform(). This should be a string of android, ios or windows.

If I hover over this variable to have the IDE tell me what it is it says it is null. This is also confirmed in the locals pane. However when I output the variable (as I do in the line above) I can see from the output panel that the variable is ios as expected.

Screenshot of it not working:
Screen Shot 2022-05-07 at 5.41.54 pm.png

Sample project I was using.
OpenOWDiag.zip

In this sample I was targeting a macOS build. In this specific case I am expecting my result to be ios even though this is macOS. However I don’t expect this to be the cause of the problem. I also tested to iOS simulator (I did need to delete iOS/BLEService.cs to build). Debugging on an Android phone worked as expected.


Original Comments

Feedback Bot on 5/7/2022, 02:04 AM:

(private comment, text removed)


Original Solutions

(no solutions)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-toolingXAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debuggingplatform/iost/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions