Skip to content

Debugging your negotiating agent

Taha Doğan Güneş edited this page Nov 14, 2017 · 5 revisions

Rather than using System.out.println(someVariable) or logging variables to a text file, you can use the debug mode of your IDE.

Using Intellij CE/IDEA

Specifically in Intellij, you need to add a new run configuration to your project:

  1. Click Select Run/Debug Configuration, then Edit Configuration.

  1. Add a new Application configuration.

  1. You need to fill out Main class and Working directory fields. For Main class, search for NegoGUIApp and pick main class.

  1. Working directory must be where your negosimulator.jar file is located at (i.e. genius folder).

  1. After adding breakpoints (or/and debugging rules), run Genius in debug mode as shown below:

Using Eclipse (Neon or higher)

You can find the steps in the official GENIUS manual in the appendix section.

Clone this wiki locally