Debugging Scripts with Eclipse Indigo
This document explains how to install Eclipse Indigo and how to use it to debug scripts.
Installing Eclipse Indigo
- 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. - (Recommended) Reboot your computer after the installation.
- Download the package containing Eclipse Indigo and the Sage X3 plug-in from the Sage X3 Classic Studio for Eclipse Downloads web site.
- Upgrade to Eclipse Indigo SR2:
- Run Eclipse.
- Click Help.
- Click Check for Updates.
- Select the latest version (SR2) and update.
Setting Eclipse Indigo as the default script editor in your Sage X3 Client
- Create a new Sage X3 project in Eclipse.
- From the Sage X3 Client, go to Setup > Users > Users (GESAUS function).
Select the appropriate user account. - Click the Parameters tab.
- Locate the following row: Chapter=Supervisor, Group=Dev, Description=Development.
Click Actions > Detail for this row. - Set the following parameter values to Yes:
- AECLIDBG
- AECLIDBGTR
- AECLIPSE
Eclipse is now your default script editor.
Using Eclipse Indigo to debug code
To start debugging code:
- Select your Menu item from your Sage X3 Client Home dashboard.
- Open Eclipse.
- Open your script.
- Click Window > Open Perspective > Debug.
- Click Attach to process and debug.
- Select your process and click Attach.
- Position your cursor where you want to start the debug process.
- Click Run, then Run to line.
- 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.