attaching a debugger in openMRS module

Hello, I want to pull out patient line listing from openMRS and i want this to be converted to xml, zipped and uploaded to an api. I basically want to provide the user with a button and all of the above happens.

The problem is that the module that is supposed to do this has been developed not by me though, and I don’t want to start everything from scratch, the existing module is not taking/getting all the information it should and I need to attach a debugger to the module from any IDE, preferably netbeans, so as to know and fix the module. Please how do I go about this. Thanks for your expected response.

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

I have fixed it. Warm regards.