Languages

Menu
Sites
Language
Can't view local variable values in debugger (VisualStudio 2019)

I am working in VisualStudio 2019, Xamarin.Forms and debugging on the watch emulator, W-4.0-circle-x86-preview (emulator-26101).

When the debugger hits a breakpoint, all variables that are local in a class method fail to show any hover text and display an error like this in the variable watch window:

"error: error: use of undeclared identifier 'dataResultURL'error: 1 errors parsing expression"

If I declare the variables as class static, then I can see their value, but that's obviously not a long-term solution.

I feel like it might have something to do with this issue related to the Linker removing debug info from Android projects, but I can't find any Linker settings/options for Tizen.
https://developercommunity.visualstudio.com/t/vs2019-mac-major-issue-not-showing-variable-values/521310

Any ideas?  This is driving me crazy!

Thanks!

-Will

 

Edited by: Will Flanery on 03 Sep, 2021