Page tree
Skip to end of metadata
Go to start of metadata

 If you are using Integration Studio (with Dashboard installed) over a local Tomcat server instance, you can easily debug a portlet project. The following task explains how this is done:

  1. Create a WAR file of your portlet project and deploy it in Tomcat (as detailed in Deploying a portlet project) to ensure that all Tomcat files are in sync with your source code.
  2. Modify the catalina.batfile of your Tomcat instance by adding the following environment variables:

    set JPDA_TRANSPORT=dt_socket
    set JPDA_ADDRESS=8000
  3. Start Tomcat using the catalina.bat jpda start command.
  4. If it is not already, open your portlet project in Integration Studio.
  5. From the Integration Studio menu, select Run and click Debug Configurations.
  6. In the left pane of the Debug Configurations dialog box, right-click Remote Java Application in the tree view, select New to add a new Remote Java Application, and configure it as shown in the following figure:

    Configuring a new _Remote Java Application
  7. Click Apply to save your configuration (optional).
  8. Click Debug to debug your portlet project.


    Before you debug a portlet project, ensure that the Debug perspective is enabled.

Integration Studio will connect to the Tomcat server and the execution will be interrupted at each breakpoint set in the source code.