Gild Debugger (cont'd)

Step 2: Running the Debugger

Before we can debug our code, we must start a special "debug" run of the code. Starting the debug run is similar to running a normal application:

  1. In the Gild Resource View, select the project that contains the PowerOfTwo program.
  2. Click on the “Debug Project [project name]” button on the toolbar.
  3. If the program doesn’t immediately start to run, follow steps (4) and (5).
  4. From the drop-down list in the dialog that is presented to you, select the PowerOfTwo class.
  5. Click the “OK” button.

After a second or two, your program will start to run. It will stop on the line at which you placed your breakpoint. This line will be highlighted, and a small, blue arrow will appear in the vertical ruler beside this line.

You can now go through the process of finding the bugs in the program. But first, it is important that you understand some of the information that is given to you while you are running in debug mode. We must discuss the Gild Debug View.


Previous | Index | Next