CSharpRepl icon indicating copy to clipboard operation
CSharpRepl copied to clipboard

Allow visual dump of Objects

Open NickAcPT opened this issue 3 years ago • 3 comments

Feature Description

For a while now, I've been looking at free alternatives to LINQPad and CSharpRepl has always stood out to me for being something very flexible (along with frequent updates), and a thing that I noticed while using this tool recently is the lack of "visually" inspect any arbitrary object, similar to what LINQPad and SharpLab provide.

Below are some examples of what I'm talking about.

Example images

Dump Example 1 Dump Example 2

Obviously that there are certain things that probably cannot be accomplished inside a terminal, but anything is better than nothing.

NickAcPT avatar Jan 16 '22 22:01 NickAcPT

@waf Sorry to be bumping an issue that's 2 months old. Recently picked up csharprepl again and hit this again. There's no way to visually inspect the objects other than the ToString method and poking at them manually.

While that isn't implemented, is there some kind of workaround that one can use to achieve something similar?

NickAcPT avatar Mar 16 '22 12:03 NickAcPT

Do you know about 'Ctrl+Enter' detailed output? It's not interactive in any way but provides more insight into the result. Although I'd like to improve it in the future.

kindermannhubert avatar Mar 16 '22 12:03 kindermannhubert

Do you know about 'Ctrl+Enter' detailed output? It's not interactive in any way but provides more insight into the result. Although I'd like to improve it in the future.

Oh shoot, I did not! I really did miss it, thanks for bringing it up! I'll leave this issue opened just in case something else can be implemented

NickAcPT avatar Mar 16 '22 15:03 NickAcPT

Should be solved when #226 is done.

kindermannhubert avatar Feb 11 '23 13:02 kindermannhubert

We now have a much nicer visual dump of objects (still triggered via Ctrl + Enter), courtesy of @kindermannhubert. I think we can close this issue now.

It looks like this:

image

waf avatar Jun 24 '23 17:06 waf