Roslyn: DebuggerTypeProxy RawView must come first

Created on 24 Oct 2017  路  7Comments  路  Source: dotnet/roslyn

when a collection has 1000 items, ill see 1000 items first and I have to scroll down all over (and wait for a lot of time) to see RawView at end.

Why is it like that? it should be at first so some one doesn't want to see 1000 items in collection and just want to access and view internal fields can do that without trouble.

image 3

I want to access this without scrolling down!

image 4

0 - Backlog Area-Interactive Interactive-Debugging

Most helpful comment

I don't think we want to move Raw View to the front. Raw View is not what most users want to see.

That said, I think we can improve visualization of arrays in VS. For example, VS Mac displays them using a tree view, where you can dig into parts of the array by groups, e.g.:

+ [0-999]
   + [0-99]
   + [100-199]
       ...
   + [900-999]
+ [1000-1999]
+ [2000-2541]
Raw View

On every level there are at most 10 entries. Getting to the end is easy.

@KayAnd @AnthonyDGreen

All 7 comments

Something like switching DebuggerTypeProxyExpansion.cs from

if (_proxyItem != null)
{
    _proxyItem.Expansion.GetRows(resultProvider, rows, inspectionContext, _proxyItem.ToDataItem(), _proxyItem.Value, startIndex, count, visitAll, ref index);
}

if (InRange(startIndex, count, index))
{
    rows.Add(this.CreateRawViewRow(resultProvider, inspectionContext));
}

To

if (InRange(startIndex, count, 0))
{
    rows.Add(this.CreateRawViewRow(resultProvider, inspectionContext));
    count--;
}

if (_proxyItem != null)
{
    _proxyItem.Expansion.GetRows(resultProvider, rows, inspectionContext, _proxyItem.ToDataItem(), _proxyItem.Value, startIndex, count, visitAll, ref index);
}

?

@benaadams yes please.

@jinujoseph Could you help route/triage this?

I don't think we want to move Raw View to the front. Raw View is not what most users want to see.

That said, I think we can improve visualization of arrays in VS. For example, VS Mac displays them using a tree view, where you can dig into parts of the array by groups, e.g.:

+ [0-999]
   + [0-99]
   + [100-199]
       ...
   + [900-999]
+ [1000-1999]
+ [2000-2541]
Raw View

On every level there are at most 10 entries. Getting to the end is easy.

@KayAnd @AnthonyDGreen

@tmat that will work too. It would be also good if you wanted to jump to specified index. When i want to debug a parser i want to see content of arrays, they are not small. That forces me to write separate code to see content.

A textbox that is always visible would help.

@tmat chrome takes a similar approach in is dev console - its a very useful representation

This is a feature request. It does not meet the bar for 15.6. Punting

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marler8997 picture marler8997  路  3Comments

AdamSpeight2008 picture AdamSpeight2008  路  3Comments

binki picture binki  路  3Comments

nlwolf picture nlwolf  路  3Comments

codingonHP picture codingonHP  路  3Comments