Hi,
Refer: https://docs.mendix.com/howto6/debug-java-actions for java actions debugging
For other debugging options: https://www.mendix.com/evaluation-guide/app-lifecycle/debugging