Open
Description
This is a feature request, based on an idea from Visual Studio.
In the image below I've shown the same set of objects in VS and FD. As you can see the VS debugging view is very friendly and makes complex object hierarchies easy to understand.
So how does it work? The VS debugger calls ToString()
on objects to show developer-provided text in the debug panels, like [Image 64x128]
. Only if the object does not support this, then it uses a default rendering like [Image]
.
The image above uses the following C# code:
internal class TestImage {
public int Height;
public int Width;
public override string ToString() {
return "[Image " + Width + "x" + Height + " in RGB]";
}
}
Can we have a similar feature in FlashDevelop?
What I propose : FD debugger should try to call "toString()" on the class object if the method exists. If the method does not exist, then it should fallback to the default rendering.