< Previous | Next >

Task 1: Starting a debugging session

You import the debug tutorial, and then run an application and find an output error.

About this task

You start the debugging session.

Procedure

  1. Open the Samples Console in the en_US (American English) locale (see Running samples from the Samples Console).
  2. In the Samples and Tutorials view, locate Rule Designer > Tutorials > Debugging a ruleset > start, and then click Import projects.
  3. From the Run menu, select Debug Configurations.
  4. In the Debug Configurations dialog, select the Decision Operation > Debug-start-Julian launch configuration, and then click Debug.
  5. On the Confirm Perspective Switch dialog, click Yes.

    The Debug perspective opens.

  6. Click Resume Resume (or press F8) to continue debugging.

    You can see the output in the Console view. The output shows $0.00 for the price of both the long-term offer and the Spring Season offer, indicating that the rules are not running properly. For example, here are the results for Julian Bayles:

    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 Spring Season offer
       * Offer: standard price: 579.90
       * Offer: Spring Season price: 0.00
       * Offer: long term price: 0.00
       # Best Offer: long term price: 0.00

What to do next

The error is in the pricing output for special offers. In the next task, you add breakpoints in the rules that are related to offers and pricing.

< Previous | Next >