ILOG JRules User Guide > Running and Debugging > Tasks > Debugging Remotely > Debugging Remotely without an Application Server

You can debug a Java application that executes a ruleset remotely, on a remote virtual machine. Before you can debug remotely, you need to make sure that you are building your project with available debug information.

To check you are building your project with available debug information:

  1. On the Window menu click Preferences > Java > Compiler.
  2. In src/SimpleRuleEngineRunner.java, locate the lines:
  3. // Prepare the engine
    IlrContext engine = new IlrContext(ruleset);
    And add the following line:
    engine.setDebuggerActivation(true);
  4. After you build your project, install it on the target computer. This involves copying the .CLASS files or .JAR files to the appropriate location on the remote computer.
  5. Invoke the Java program on the remote computer using the appropriate VM arguments to specify debug mode and a communication port for the debugger.

You can set the property directly inside your Java code, or you can pass it in the command line that launches the application.

You can now open Rule Studio and debug your Java application with rules remotely.

To debug your Java application remotely:

  1. Click Run > Debug.
  2. In the Configurations area of the Debug dialog, under Remote Java Application with Rules click the Configuration_Name you defined in the debugger launch configuration task.
  3. Click Debug.
  4. The launch configuration tries to connect to a VM at the specified address and port, and the result is displayed in the Debug view. If the launcher is unable to connect to a VM at the specified address, an error message appears.

See http://java.sun.com/products/jpda/index.jsp for more details on debugging on Java platforms.

Related Concepts

Overview: Testing Rules and Ruleset Execution
Ruleset Debugging
Rule Engine
Rule Execution Server

Related Tasks

Creating a Debugger Launch Configuration
Debugging

Related Samples and Tutorials

Tutorial: Debugging a Ruleset
Tutorial: Debugging a Remote Rule Execution Server Application