Remote Debugging
You can debug an application running on a remote container through TIBCO Business Studio for BusinessWorks.
- Procedure
- Expose ports 8090 and 5005 in the Docker file, while building an application image.
- Map ports
8090 and
5005 using
-P
command while deploying the application. - 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=Main
The HTTP Verb is POST and the URL can be accessed by API Clients such as Postman, Swagger UI and so on.
Note: The <mappedPortNo> is the port which is mapped to 8090 while deploying the application. - Import the application running in the container to TIBCO Business Studio for BusinessWorks that you want to remote debug.
- In TIBCO Business Studio for BusinessWorks , create a Remote Debug launch configuration.
-
Choose
. -
In the Debug Configuration dialog, choose
. 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.
-
- 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.