attaching a debugger in openMRS module

Did you get a chance to look at these? https://wiki.openmrs.org/display/docs/OpenMRS+SDK