Starting a debugging session


This section first discusses preparing a program for debugging and then steps you through starting a debugging session.

Examples used in this section

This chapter uses as an example the UFO program that is included on the Portfolio CD-ROM in the /remote folder. You can follow the instructions on a Macintosh that's connected to a 3DO Station. All files used in the example here are provided on the installation CD-ROM or are easy to create.

Preparing for launch

Preparing for launch involves the following steps, discussed in this section:

Preparing the makefile

The easiest way to create a makefile with the right settings is to use the Create3DOMake tool available via the 3DO menu in MPW.

If you decide to use your own makefile, pay attention to the following requirements:


Setting up the folder structure

To facilitate debugging, use the following folder structure:

Using an spt script file to set source directories

When the Debugger starts, it looks for a preferences file and for script files. TWo script files are currently recognized:

Note: Don't make any other changes to the 3DO boot script (.scr) file. They can cause problems with the encryption process.

Starting the Debugger

After you have installed all software, turn on the Macintosh, the 3DO Station, and the TV monitor, and go through the following steps:

  1. Make sure your station is set up for debugging:

    If you have an older "Green" Station, make sure the Debug switch on the 3DO Station is in the UP position.

    If you have a newer, International Station, you should be set up for debugging by default. If not, use the ROM pop-up in the Preferences dialog, as described in Preferences dialog pop-ups.

  2. Double-click on the 3DODebug icon in the 3DO_OS:version folder.

    You are prompted for a script to execute.

  3. Select the 3DO boot script file, which should reside in the same folder as the Debugger.

    The Debugger starts up the 3DO Station and downloads and launches the operating system. A number of messages appear, followed by a Debugger prompt.

    You can now start using the Debugger to download your programs.