Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Why "ToString" not used in Locals pane, but shown in Watch and data tooltips?

$
0
0

In Visual Studio 2017 Enterprise, with Resharper.
Debugging a Xamarin.Forms app, running on an Android phone.

Variables in Locals pane are not showing "ToString" value for my objects,
just showing the default display, which is the name of the class of each object.

The same variable added as a Watch does show the result of calling ToString() on the object.
Hovering over the variable in the code pane also shows ToString() value.

Interestingly, one can force evaluation by adding

[System.Diagnostics.DebuggerDisplay( "{ToString()}" )]

before the class definition.

So the Locals pane (but only the Locals pane) is acting as if
Tools / Options / Debugging / "Enable property evaluation and other implicit function calls"
were unchecked.

Is this expected?

(I've confirmed that my Visual Studio / Locals does show ToString values when I debug a VB .NET desktop application,
so it is only Xamarin that is not showing this.)


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>