Debug Tunneled Java Functions

Trigger the tunneled functions in Catalyst web, and confirm that the debugger has been attached by viewing the Catalyst CLI, for a message resembling the one shown in the image below:

catalyst_tunneling_start_debugging_in_cli

Depending on the IDE you are using the following steps might vary.

Debug Tunneled Java Functions in Visual Studio Code IDE

  1. Click the Run/Debug icon and select the functions you wish to debug.
catalyst_tunneling_debug_vscode_java_start_debugging_1
  1. Click the Play button.
catalyst_tunneling_debug_vscode_java_start_debugging_2

You can now easily debug your non-HTTPS and Integration functions.

catalyst_tunneling_debug_vscode_java_start_debugging_3

Debug Tunneled Java Functions in IntelliJ IDEA IDE

  1. Ensure you have set the required break points in your code and click the Run/Debug configurations button.
catalyst_tunneling_debug_inteliij_start_debugging_1
  1. Select the debugger file you configured in the previous step from the drop-down.
catalyst_tunneling_debug_inteliij_start_debugging_2
  1. Once function is triggered in the Catalyst web and the tunneling request is initiated in the Catalyst CLI, click the Debug button and start debugging.
catalyst_tunneling_debug_inteliij_start_debugging_3

Once you have completed debugging your code, ensure you stop/terminate the debugging session in your IDE, by clicking the stop-icon. This is to ensure that the port is not engaged when you proceed to your next debugging session.

catalyst_tunneling_debug_inteliij_start_debugging_4

Debug Tunneled Java Functions in Eclipse IDE

  1. Ensure you have set the required break points in your code and click the debugger-icon.
catalyst_tunneling_debug_eclipse_start_debugging_1
  1. Select the debugger file you configured in the previous step.
catalyst_tunneling_debug_eclipse_start_debugging_2
  1. Once you trigger the tunneling-enabled function in Catalyst web, click the Debug button in your IDE and debug you function as required.
catalyst_tunneling_debug_eclipse_start_debugging_3

Once you have completed debugging your code, ensure you terminate the debugging session in your IDE, by clicking the terminate-icon. This is to ensure that the port is not engaged when you proceed to your next debugging session.

catalyst_tunneling_debug_eclipse_start_debugging_4

Last Updated 2025-02-19 15:51:40 +0530 +0530

ON THIS PAGE
ACCESS THIS PAGE