Portlet Factory, Version 6.1.2


 

Configuring IBM WebSphere Portlet Factory Designer for debugging

To debug Java code after you configure the server for debugging, configure WebSphere Portlet Factory Designer for debugging.

  1. If you have not done so already, add the WEB-INF/factory/generated folder as a Source directory for your project.

    Do this in the Project Properties > Java Build Path. This directory contains the generated Java source files for each model.

    Note: If the Java source files for your LJO builder calls do not reside in the WEB-INF/work/source directory, add the directory in which they do reside as a Source folder for the project.

  2. If you have not done so already, you need to establish a Debug configuration. Click Run > Debug to open the Debug Configuration dialog.

  3. In the tree-list of debug configurations, choose Remote Java Application and click New.

  4. Provide a name for this debug configuration. For example, "Factory-Java Debug". The right pane of the Debug Configuration dialog displays a set of inputs allowing you to set the host name and port on which the application server is running.

  5. Set port number to the same value as the port number you set when you enabled debugging on the portal server. The default IBM® WebSphere Application Server debugging port is 7777.

  6. Set the host name to that of the machine on which the server is running.

  7. In the Source tab of the Debug configuration, add the path to your project's WEB-INF/factory/generated directory in the application server as a directory. If the directory doesn't show up, make sure you have opened the model you want to debug. You may have to regen the model to force generation of the Java code. If needed, move the entry you just added below the default folder.

  8. Click OK to save this Debug Configuration.

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


Library | Support |