Test applications using FDT

In FDT, you can start your application in either run or debug configuration.
  • Run mode: You can run your application, but you can't suspend or examine it.
  • Debug mode: You can run, suspend, and resume your application. This allows you to examine, test, and debug your application.
Before you begin:
  • If you haven't already, use the BlackBerry Deployment Setup Wizard to configure your BlackBerry device or simulator. For more information on the BlackBerry Deployment Setup Wizard, see Configure your development environment.

Create a debug configuration

  1. In FDT, on the Run menu, click Debug Configurations.
  2. In the list of configurations, right-click FDT AIR Application.

    This screen shows the run configurations screen

  3. Click New.
  4. On the Main tab, in the Main Class section, click Browse.
  5. On the Browse Classes screen, select your application's main class. Click Ok.

    This screen shows the Browse Classes screen.

  6. In the Target Platform drop-down list, click RIM BlackBerry.
  7. In the Launch Method section, select the On device option.
  8. In the Target device drop-down list, click your BlackBerry device or simulator.

    This screen shows the completed debug configuration screen.

  9. On the Common tab, in the Display in favorites menu section, select the Debug checkbox.

    This screen shows the Display in favorites menu.

  10. Click Apply.
  11. Click Debug to start your application on your BlackBerry device or simulator.

Debug or run your application

To run your application using a debug configuration, do one of the following:
  • Click the debug icon.
  • On the Run menu, expand Debug As. Click FDT AIR Application.

The Console pane displays any debug output information. You can switch to the Debug perspective for a more detailed view of your debug session.

To run your application using a run configuration, do one of the following:
  • Click the run icon.
  • On the Run menu, expand Run As. Click FDT AIR Application.