Remote Debugging

You can debug an application running on a remote container through TIBCO Business Studio™ for BusinessWorks™

Procedure

  1. Expose ports 8090 and 5005 in the Docker file, while building an application image.
  2. Map ports 8090 and 5005 using -P command while deploying the application.
  3. Once the application starts successfully, enable remote debugging by invoking the following engine REST API on port 8090:
    http://localhost:<mappedPortNo>/bw/bwengine.json/debug/?interface=0.0.0.0&port=5005&engineName=MainThe
    HTTP Verb is POST.
    Note: The <mappedPortNo> is the port which is mapped to 8090 while deploying the application.
  4. Import the application running in the container to TIBCO Business Studio for BusinessWorks that you want to remote debug.
  5. In TIBCO Business Studio for BusinessWorks , create a Remote Debug launch configuration.
    1. Choose Run > Debug Configurations.

    2. In the Debug Configuration dialog box, choose Remote BusinessWorks Application > New_configuration. Enter the following information:
      • Name: The name of the configuration.
      • Host: The name of the docker host.
      • Port: The remote debug port which is mapped to port 5005 while deploying the application.
  6. Launch the application using the Remote Debug launch configuration.
    The application is launched in the debugger. Job data is displayed in the Debug window with the process diagram.