Portlet Factory, Version 6.1.2


 

Running a model in debug mode

After you configure the server and designer for debugging, follow these steps to initiate debugging of Java code:

  1. Add a breakpoint to the code.

    1. Open the Java source file for an LJO or the generated Java source file for the model.

      For example, for a model named "Test" in the WEB-INF/models directory, you would find its generated Java source file in: WEB-INF/factory/generated/genjava/_Test.java

    2. Set a breakpoint at the desired spot in the code.

  2. Run the Model to Initiate Debugging.

    1. In IBM® WebSphere Portlet Factory Designer, choose Run > Debug > Factory Debug (or whatever name you provided during the debug configuration dialog).

    2. Wait until the debugger is finished loading.

    3. Run the model. When the debugger hits the first break point, the Debugging perspective will display, and the code at your breakpoint will be highlighted.

    4. Debug the code for your model as you would any other Java application.

Parent topic: Debug with Eclipse/RAD using Factory Model Execution Debugging


Library | Support |