Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Out Putting Graph in Debug Window

Out Putting Graph in Debug Window

Scheduled Pinned Locked Moved C#
data-structuresdebugging
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    computerpublic
    wrote on last edited by
    #1

    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.

    D L 2 Replies Last reply
    0
    • C computerpublic

      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.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • C computerpublic

        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.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        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: *******
        */

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups