Out Putting Graph in Debug Window
-
Hello, I was wondering if it was at all possible to transform a set of values into graphical on the debug window (black screen). I am new this stuff and I have never seen it done myself. I was just wondering how someone would go about attempting to turn a set of values into graphical form. I thought of the graphical form because it is much easier to look at graph to see a behavior than it is to read through hundreds of numbers. Thanks.
-
Hello, I was wondering if it was at all possible to transform a set of values into graphical on the debug window (black screen). I am new this stuff and I have never seen it done myself. I was just wondering how someone would go about attempting to turn a set of values into graphical form. I thought of the graphical form because it is much easier to look at graph to see a behavior than it is to read through hundreds of numbers. Thanks.
If you're talking about the Debug window in Visual Studio, no, it's not. It doesn't support graphic images. If you're still talking Visual Studio and you're talking about the little window that shows up when you hover the mouse of a variable, then you can replace that with a different visualizer. You can create your own custom visualizers to display data type any way you want. Debugger Visualizers[^]
A guide to posting questions on CodeProject
How to debug small programs
Dave Kreskowiak -
Hello, I was wondering if it was at all possible to transform a set of values into graphical on the debug window (black screen). I am new this stuff and I have never seen it done myself. I was just wondering how someone would go about attempting to turn a set of values into graphical form. I thought of the graphical form because it is much easier to look at graph to see a behavior than it is to read through hundreds of numbers. Thanks.
If one is limited to basically "text" output, one can create a graph of sorts by outputting lines of various lengths; e.g.
List> values = new List>() {
new Tuple("Apples", 3),
new Tuple("Peaches", 5),
new Tuple("Pumpkins", 10),
new Tuple("Pies", 7)
};foreach ( Tuple t in values ) { Console.WriteLine( "{0,10}: {1}", t.Item1, "".PadRight( t.Item2, '\*' ) ); }
/*
Apples: ***
Peaches: *****
Pumpkins: **********
Pies: *******
*/