Eclipse - How to Setup Eclipse in a Shrew Checkout

From OPeNDAP Documentation
⧼opendap2-jumptonavigation⧽

Eclipse as an IDE for Shew

It can be useful to use an IDE when debugging and developing for Hyrax due to the graphical interface to gdb as well as the extensive searching and code indexing features that Eclipse provides. This document will go through the steps for getting Eclipse set up pointing into a Shrew checkout. We also explain how we set up debug configurations for debugging modules using the besstandalone program.

Downloading Eclipse

Eclipse may be found at http://eclipse.org/downloads/

Download the Eclipse for C/C++ Development (with Mylyn Integration).

If you also plan to do Java development, you can add these bundles in later using the Software Update.

Creating a Workspace In A Shrew Directory

We assume you have a shrew project checked out and built using the standard approach. If not, please follow the steps in the next section.

Getting a Debug Shrew Project

Go to the directory you want the shrew project and do a checkout.

Module Development/Debugging

If you plan to debug or develop modules for the BES, we suggest you use:

http://scm.opendap.org/svn/branch/shrew/module_dev_1.6

to start as this will be set to use the trunk versions of the modules but to use the fixed, release versions of libdap and the BES for Hyrax 1.6. This ensures that development doesn't use any new APIs from the libdap or bes trunk versions so that modules may be released incrementally and dynamically work with an existing Hyrax 1.6 installation with no other changes necessary.

Pointing the Workspace at Shew Using Existing Makefiles

Building

Debugging a Module