xboxscene.org forums

Author Topic: Debugging Error  (Read 83 times)

zilli0n

  • Archived User
  • Jr. Member
  • *
  • Posts: 90
Debugging Error
« on: June 25, 2006, 01:33:00 PM »

(IMG:http://img268.imageshack.us/img268/5646/debugerror7ep.jpg)

I take it you can not debug when there are errors present in the code ? This is what message I am currently getting. I am using a retail dev kit.
Logged

fghjj

  • Archived User
  • Sr. Member
  • *
  • Posts: 288
Debugging Error
« Reply #1 on: June 25, 2006, 01:55:00 PM »

Debugging helps you find errors in program logic. For example:
CODE
someVariable = 0;
otherVariable = 13 / someVariable; //divide by zero impossible

You can't debug language errors, like
CODE
25 = someVariable + *$&_%*$; //makes no sense
since the compiler has no idea how to translate that in executable (and thus debuggable) code. So there's no .xbe file for the Xbox to start/debug.

This post has been edited by fghjj: Jun 25 2006, 08:56 PM
Logged

programmingace

  • Archived User
  • Newbie
  • *
  • Posts: 24
Debugging Error
« Reply #2 on: June 26, 2006, 03:06:00 PM »

The code has to at least compile and run before you can attach a debugger to it. Once it's running on the xbox, go to tools, attach debugger to process. Change the target to the xbox and select the process you want to debug.
Logged