How to debug the camunda file in cloud foundry?

I want to debug the camunda file. But don’t know how. I am using Java project to execute camunda files and on server I am using cloud foundary. Can you please let me know how can I debug my camunda files locally while developing?