...
- Navigate to Run -> Edit Configurations…
- Click + to add new configuration, and choose Gradle.
- Fill in the following fields:
Name: Debug My OFBiz
Gradle project: <path to build.gradle>
Tasks: ofbiz
- Click OK.
- Navigate to Run -> Debug…, choose Debug My OFBiz.
- Click Stop ‘Debug ‘My OFBiz’ when done with debugging.
...