ILOG JRules User Guide > Running and Debugging > Getting Started > Tutorial: Debugging a Ruleset > Task 1: Starting a Debugging Session

In this task, you import the debug tutorial then run an application and find an output error.

To start the debugging session:

  1. Make sure you are in the Rule perspective: on the Window menu, click Open Perspective > Other and choose Rule in the Select Perspective dialog.
  2. On the File menu, click Import.
  3. In the Import wizard, select ILOG Rule Studio > ILOG Rule Studio Samples and Tutorials and click Next.
  4. Select tutorials > debug > start and click Finish.
  5. From the Run menu, select Open Debug Dialog.
  6. In the Debug dialog, select the Rule Project launch configuration debug-start-configuration, then click Debug.
  7. When the Confirm Perspective Switch dialog appears, click Yes.
  8. The Debug perspective opens.
  9. Click images/tut_icon_resume.png Resume (or press F8) to resume debugging.
  10. The output appears in the Console view. Note that the price displayed for both the long term offer and Super bowl offer is $0.00, indicating that the rules that compute these prices are not executing properly. For example, the result for Julian Bayles is:
Rental Agreement for Julian Bayles (May 20, 1970)qualifies for the long term offer
Rental Agreement for Julian Bayles (May 20, 1970)qualifies for the Super Bowl offer
   * Offer: standard price: 579.90
   * Offer: Super Bowl price: 0.00
   * Offer: long term price: 0.00
   # Best Offer: long term price: 0.00

Now that you see the error is in the pricing output for special offers, the next step is to add breakpoints in the rules related to offers and pricing.

images/arrow_next.gif Next: Task 2: Setting Breakpoints in the Rules