How to debug Sage X3 code file in Sage X3 version 7 using Eclipse

By | May 30, 2015

In our previous blog- How to Open Sage ERP X3 code file in Eclipse folder in version 7, we have shown you how to create a workspace or open the Sage X3 code file. This blog will take you one step further to debug your own code to debug in Eclipse in an easier way. There may be many ways to debug the code, but as a beginner, I find this one simpler.

Before we proceed, it is assumed that you have opened the Sage X3 code file in eclipse similar way we have described in our previous blog. Here I am debugging the code with reference to Sales order

New Stuff: How to make Gross Field Editable/Non-Editable using a Price list

  • Step 1. Open Sales order screen (GESSOH)
  • Step 2. Open the Code file SPESOH in eclipse and the mode should be DEBUG Mode.
    Mark the breakpoint in the code wherever you need by right clicking and select breakpoint or double-clicking the lefthand side corner.


  • Step 3. Now attach the process to your function. Click on project Tab and then attach to process.


  • Step 4. A new pop up screen will open, where you have to select the current user you have logged in and the function you have debug. Click on Attach button


  • Step 5. Now go back to your browser and make any transaction as I have kept the breakpoint on Action label it will start debugging at every action. Go back to the eclipse you will see it has started debugging. Press F8 it will bring back to to the Action label which will be highlighted with an arrow.

Debugging options in Eclipse :

  • F5- to step into(similar to Line button in V6)
  • F6-To step over(similar to continue button in V6)


About Us
Greytrix – a globally recognized Premier Sage Gold Development Partner is a one-stop solution provider for Sage ERP and Sage CRM needs. Being recognized and rewarded for multi-man years of experience, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development and implementation expertise.

Greytrix caters to a wide range of Sage Enterprise Management (Sage X3) offerings – a Sage Business Cloud Solution. Our unique GUMU™ integrations include Sage Enterprise Management (Sage X3) for Sage and Magento eCommerce along with Implementation and Technical Support worldwide for Sage Enterprise Management (Sage X3). Currently we are Sage Enterprise Management Implementation Partner in East Africa, Middles East, Australia, Asia. We also offer best-in-class Sage X3 customization and development services, integrated applications such as POS | WMS | Payment Gateway | Shipping System | Business Intelligence | eCommerce and have developed add-ons such as Catch – Weight  and Letter of Credit for Sage Enterprise Management to Sage business partners, end users and Sage PSG worldwide.

Greytrix is a recognized Sage Rockstar ISV Partner for GUMU™ Sage Enterprise Management – Sage CRM integration also listed on Sage Marketplace; GUMU™ integration for Sage Enterprise Management – Salesforce is a 5-star app listed on Salesforce AppExchange.

For more information on Sage X3 Integration and Services, please contact us at We will be glad to assist you.