Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Servoy is a plugin for the Eclipse platform, so to develop the Servoy codebase an Eclipse SDK environment with Eclipse Plugin development facilities is required.

Download & install

Installation & setup
  • Download & install Servoy Developer. 
  • Download & install a version of Eclipse with Eclipse Plugin Development features installed (Eclipse SDK)
  • Start Eclipse SDK and create a new Workspace
  • Install an SVN plugin
  • Checkout the Servoy Codebase from SVN
  • Add a new target platform (Preferences > Plugin Development > Target platform > add).
    • Add a Location under "Locations" of type "directory" and point it to the developer directory of the Servoy Developer installation
  • Create a new Debug Launch configuration (Run > Debug Configurations)
    • Select the "Eclipse Application" node and click the "New launch configuration" button
    • On the "Main" tab:
      • Provide a Name
      • Specify a workspace location under "Workspace Data" by clicking "File System". Select the workspace containing your Servoy solution projects  
      • select 'com.servoy.eclipse.core.ide' under "Main" > "Program to run" > "Run a product"
    • On the "Arguments" tab:
      • Point "Working directory" > "Others:" to the developer directory of the existing Servoy installation, by clicking the "File system" button
    • Apply the changes

*Debugging using Eclipse Plugin Development facilities:*

Plugin/bean development using the Eclipse Plugin Development facilities means that Servoy Developer is started from within a Eclipse instance that has the Eclipse Plugin Development features installed (called "plain" Eclipse from now on). 
The plugin/bean project is located in the "plain" Eclipse instance. When it's time to debug the code, the Servoy Developer Eclipse instance is launched as a debug process from within the "plain" Eclipse instance.
The Servoy Developer Eclipse instance is a full featured Servoy Developerhat can be used to create/alter solutons, start Debug Clients, create and debug JavaScript code etc. If any code is executed that is part of the plugin/bean project in the "plain" Eclipse instance and it contains a breakpoint, the Java debugger in the "plain" Eclipse instance will be activated and thus the plugin/bean code can be debugged.

Debugging

To launch a debug session the first time, it is required to go through the Debug Configuration dialog:
*  Run > Debug Configurations >  select the previously created Debug Configuration and press the "Debug" button
On subsequent launches the Debug Configuration will be accessible through the Debug History (available through Run > Debug History or the debug button on the toolbar)

Memory settings

Memory settings for the debug session can be set on the "Arguments" tab of the Debug Launch Configuration. It is advised to specify here the same memory settings as applied in the servoy.ini file of your Servoy Developer installation (Default: -Xms40m -Xmx256m -XX:MaxPermSize=256m)


Download Servoy
Download Eclipse SDK

  • No labels