Sessions

What are Sessions?

A JSwat Session is the object that manages the debuggee VM from the standpoint of the debugger. It launches a debuggee or connects to a remote debuggee. A Session can suspend and resume a debuggee. The Session also keeps a variety of persistent settings called properties.

At present JSwat supports only one session at a time.

Session Properties

The properties of a Session include the classpath, sourcepath, list of excludes, last-used search phrase, watchpoints, main class, remote host and port, JVM options and so on. All of these properties are initially empty until they are defined during normal interaction with JSwat. When JSwat exits it automatically saves the properties to a file on disk. The next time JSwat starts, it reads those properties from the file.

JSwat has basic support for multiple sets of Session properties. That is, the current Session properties can be saved to an arbitrary file and later recalled. This is done through the "Open Session" and "Save Session" menu items in the "File" menu.