Debugging in Eclipse

Introduction to debugging in the Eclipse IDE

Copyright ©

Mindbreeze GmbH, A-4020 Linz, 2018.

All rights reserved. All hardware and software names are brand names and/or trademarks of their respective manufacturers.

These documents are strictly confidential. The submission and presentation of these documents does not confer any rights to our software, our services and service outcomes or other protected rights. The dissemination, publication or reproduction hereof is prohibited.

For ease of readability, gender differentiation has been waived. Corresponding terms and definitions apply within the meaning and intent of the equal treatment principle for both sexes.

IntroductionPermanent link for this heading

To be able to debug within the Eclipse IDE, the following steps are necessary:

  1. Set the relevant properties to make sure that the later generated template file already includes the appropriate settings. The properties-file is located at your Mindbreeze SDK installation at SDK/servicesapi/java/

    The following settings can be made:
    1. endpoint: the URL of your appliance (i.e.
    2. filterid, indexid: the respective indices (i.e. 23400, 23101)
    3. username, password: Information that is being sent in a basic authorization header (i.e. the default credentials for the inspireapi)
    4. nodeid: you can find this information in the management center (i.e. inspire-abc123def567…)
  2. Create a project with the mesjavaplugin (or on Linux):

        mesjavaplugin datasource MySource com.mycompany

    You should see a folder called "mysource" with the following structure:

  1. Include the generated project into your Eclipse workspace

    Right-Click on the Package Explorer and click "Import…". Choose "General" > "Existing Projects into Workspace":

    then choose the generated project from the respective location:

  1. Check the settings in the file "" (correct endpoint, credentials, …) and change them if necessary.

Apart from the template class "", where you can do the testing, the mesjavaplugin also generates a Run Configuration in the config directory, called "mysource-debug.launch". When you run the test class (Right Click > Run as > Java Application), Eclipse automatically runs your test with the generated Run Configuration. This configuration includes all the necessary jar-files in its class path. You can find the jar files needed for debugging in the folder "rt".

By default, all log information will be written to C:\\tmp\log-default-mysource.txt. If you want to change the location of the log file just adapt the path in the method configureLogger():

To check if your requests to the index and filter services were successful, you can open the reporting area in your management center. Under “Performance” > “Applications” > “Filter Service” (and Index Service respectively), you see the requests that have come in:

Filter Service:

Index Service: