Starting a run time debug workbench

The Debug perspective offers an array of tools to test code, including pattern code. You can set up a custom debug configuration and reuse it to perform your testing. Refer to the online help to learn more about the debugging tools.

Ensure that your code is compiled before you test. The default build setting is Build Automatically. To compile your code if you have changed the default setting, click Project > Build All. Save the workspace.
You can launch a runtime instance of your developer workbench to test the pattern. The pattern is tested by applying it. The developer and runtime instances are interactive. Any breakpoints or trace messages that you included in the pattern code are reported to the developer workbench.
Note: You cannot make changes to the pattern code while the runtime session is running.

To launch the runtime workbench:

  1. Click Window > Open Perspective > Other to open the Select Perspective window.
  2. Click Debug and click OK. The Debug perspective opens.
  3. Click Run > Debug The Debug window opens.
  4. In the Configurations list, click Run-time Workbench and click New.
  5. Type a configuration name in the Name field and select the Clear workspace data before launching check box to ensure that the latest changes to your pattern are used.
  6. Click Debug to launch a new instance of the workbench.
    Note: After you set up a debug configuration, you can start a debug session by clicking the debug bug icon The debug bug icon..
    The Rational® Software Development Platform splash screen appears while the run time instance is loading.
  7. In the runtime instance, do the following steps:
    1. Add a UML 2.0 project and model.
    2. Add elements to the model that represent the design conditions that you want your pattern to modify.
    3. Locate your pattern in the Pattern Explorer view.
You are ready to start testing your pattern.
You can test your pattern by performing each type of possible expansion to ensure that the pattern achieves the anticipated results.

Parent topic: Testing patterns
Next topic: Checking for pattern errors

Related concepts
IBM Rational design patterns
Pattern code and support files
Pattern instantiations

Related information
Tutorials and samples for authoring patterns

Terms of use | Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.