GoldenGaming

Welcome to GoldenGaming. We appreciate your support and hope that you be an active member. Don't Forget To Sign Up!

Welcome to Golden Gaming
Contact an Admin or Moderator for any issues you have
We Are Purchasing A Domain After 100 Members!
You can now use symbols in your username, just don't forget them!

    Debugging in 360 SDK with JTAG

    Share
    avatar
    I Am Programmer
    Rookie User
    Rookie User

    Posts : 20

    Debugging in 360 SDK with JTAG

    Post  I Am Programmer on Wed Dec 08, 2010 9:07 pm

    Ok so there is no official way to properly debug anything you write...BUT you can create a log for when you program gets stuck and freezes. So thanks to dstruktiv from xbox-scene we have a way to do JUST that. All that you need to do is make this your debug.ccp or whatever extension it is (too messed up atm to tell you for sure)

    Code:
    void debugLog(char* output)
    {
        ofstream writeLog;

        writeLog.open("game:\\debug.log",ofstream::app);
        if (writeLog.is_open())
        {
          writeLog.write(output,strlen(output));
          writeLog.write("\n",1);
        }
        writeLog.close();
    }

    Ok now that you have that how exactly is that used? Well before and after each variable add this code to your program

    Code:
    debugLog("Executable not found on specified path:");

    This creates a debug.log in the same directory as the xex you are debugging and will tell you when its getting held up.

      Current date/time is Fri Nov 17, 2017 10:56 pm