Debugging transformations
Several mechanisms are available for debugging transformations,
such as generating debug logs or viewing the contents of the transformation
context when you run a transformation. Your role as a transformation
author or a transformation user determines which mechanisms you can
use.
Generating debugging information for transformations
Procedure
To generate a log file for a transformation:
Results
Tip: To set preferences for transformations,
click ; then expand Modeling and click Transformations.
Viewing the values of the transformation context when you debug transformations
As a transformation author, when you debug a transformation,
you can view the logical structure of the transformation context.
You can use this feature to navigate the hierarchical structure of
the transformation context, and view the values from the transformation
context and the transformation descriptor.
Before you begin
In the Java™ code for a transformation, you must set a breakpoint in a method that has a parameter or field that is of type com.ibm.xtools.transform.core.ITransformContext.
You
must create the following items:
- A transformation configuration for the transformation that you debug
- An Eclipse launch configuration that starts a runtime workbench in debug mode
- In the runtime workbench, a project that contains a model that the transformation transforms, and a target container in which the transformation generates output
Procedure
To view the values of a transformation context:
Results
Note: Some information, such as links to Eclipse
documentation or to developer guides, is available only from the help
topics that are installed with the product.

