[Tutorial] Debug output print in visual studio

begallegal1 Jun 17, 2013

  1. begallegal1

    begallegal1 Medicine Man Lifetime Gold TeamXPG
    25/47

    Joined:
    Oct 31, 2011
    Messages:
    3,694
    Likes Received:
    3,124
    Trophy Points:
    0
    Gender:
    Male
    Location:
    In a Field of Green
    Console:
    Xbox
    This tutorial is very basic, but shows you how to use the debug print to the output box in visual studio, this can be used for error checking, function testing/notification and much more ;)

    http://www.youtube.com/watch?v=XeOfQkZ0gJw


    add to your project if not already included.
    Code:
    using System.Diagnostics;
    
    to use the print function in your desired location add this line
    Code:
    Debug.Print("Some Text Here!");
    
    in the video I add \n to the end of the text to prompt a skipped line for easier reading while debugging, this same basic method works in all languages just use the appropriate syntax for that language ;)

    enjoy

    :begal:
     
    • Like Like x 3
  2. CRACKbomber

    CRACKbomber Resident Xbox Guru XPG Developer
    25/47

    Joined:
    Sep 12, 2011
    Messages:
    276
    Likes Received:
    235
    Trophy Points:
    25
    Gender:
    Male
    Location:
    Michigan
    Console:
    Xbox
    Trace.WriteLine(string);
    This also works for debug print.
     
    • Like Like x 2

Share This Page

Close