Debugging Scripts with Eclipse Indigo

This document explains how to install Eclipse Indigo and how to use it to debug scripts.

Installing Eclipse Indigo

  1. Install the Oracle® Java™ SE Runtime Environment (JRE).
    Make sure you install the 32-bit (x86) version if you are using Eclipse 32-bit, and the 64-bit version (x64) if you are using Eclipse 64-bit. Eclipse 32-bit is recommended.
  2. (Recommended) Reboot your computer after the installation.
  3. Download the package containing Eclipse Indigo and the Sage X3 plug-in from the Sage X3 Classic Studio for Eclipse Downloads web site.
  4. Upgrade to Eclipse Indigo SR2:
    1. Run Eclipse.
    2. Click Help.
    3. Click Check for Updates.
    4. Select the latest version (SR2) and update.

Setting Eclipse Indigo as the default script editor in your Sage X3 Client

  1. Create a new Sage X3 project in Eclipse.
  2. From the Sage X3 Client, go to Setup > Users > Users (GESAUS function).
    Select the appropriate user account.
  3. Click the Parameters tab.
  4. Locate the following row: Chapter=Supervisor, Group=Dev, Description=Development.
    Click Actions > Detail for this row.
  5. Set the following parameter values to Yes:

Eclipse is now your default script editor.

Using Eclipse Indigo to debug code

To start debugging code:

  1. Select your Menu item from your Sage X3 Client Home dashboard.
  2. Open Eclipse.
  3. Open your script.
  4. Click Window > Open Perspective > Debug.
  5. Click Attach to process and debug.
  6. Select your process and click Attach.
  7. Position your cursor where you want to start the debug process.
  8. Click Run, then Run to line.
  9. In the Sage X3 Client, process your selected transaction.
    When your transaction reaches the selected line in the script, it will stop.

You can now debug using the standard Eclipse functionality.