Debugging Sessions in Application Server
Debugging Sessions in Application Server
You are here: Enterprise Frameworks > Platform Framework > TAFJ > TAFJ-JBC-Remote-Debugger > Debugging sessions in
Application Server
In order to debug your T24 running in an application server, first you need to let your app server know that you want to be able to debug it. For that, you have
to specify a debugging port using the option “jbc.debug” like this:
-Djbc.debug=<a_free_tcp_port>
The window will ask which type of debug configuration wish to create. Choose JBC Remote and click New Launch Configuration
Container project: Choose the project in which you have the sources corresponding to what is deployed in the app server. BY selecting “Browse” only the
projects having the TAFJ Nature will be listed.
Host: Provide the host name or IP on which your app server is running
Port: Provide the TCP port specified in -Djbc.remote on your app server.
Connection Timeout (secs): You could launch the Debug target before your app server. In that case, Eclipse will wait until the app server is available. This
field indicates how many seconds Eclipse should wait.
Redirect Output: Normally, when running in an app server, CRT and PRINT are de-activated. However when debugging, this could be good to see those
outputs in your Eclipse IDE. This checkbox should always be ticked.
Set eclipse in listen mode: This option is for debugging the API and will be described in the next chapter.
Once you specified all those fields give a name to the configuration, click apply and debug.
At this point, you can debug whatever runs (JBC) on your app server.
You can do suspend, resume, set break points, etc. as a “normal” session.
As soon as you can stop your debug target, this will not stop the app server, instead, this will disconnect from it and let it run as normal.