I have a large code base that resides on a unix server, and for the sake of improving the efficiency of writing future code and debugging that which already exists, I would like to move whatever code I can into an eclipse project and debug it from there.
I have looked at remote debugging but I would prefer to be able to debug the majority of the code locally. Most of the code is written in java but running it relies on a few unix and perl scripts.
If anyone could point me in the direction of anything useful that will help me to take this mammoth code base into an eclipse project, setting up the proper debug configuration with suitable paths etc. I would be very grateful. Even a general document which I can adapt to suit my needs would be a bonus. I realise that a succinct answer is unlikely.
Thanks in advance.
Important questions are how many dependencies does your project have now and what tool is used to build it?
If you are using maven you can just install maven you can create eclipse project by running
mvn eclipse:eclipseand then open your project in eclipse.If it is ant project try to find tool that creates eclipse project from ant script (if such tool exists). If not create the project manually and configure all dependencies.
Once you are done you can run and debug the java part of your code.
Perl is not a problem. Just install it on your dev. machine. The shell scripts might cause some problems if you are using Windows for development. The way to run unix scripts on windows is using Cygwin. You will have to change (a little bit) the code that runs scripts to add prefix
cygwinthere when you are on windows.After that I hope you will be able to run and debug it locally.
Or, alternatively you can move to Linux. In this case you will not have problems with scripts. If you cannot move to Linux totally (dependencies on MS Office, Outlook, company policy etc) you can install VMPlayer with one of popular Linux distributions (e.g. Fedora, Ubunty etc) and work on this virtual machine that will run on Window box.
I hope this helps. Good luck.