![]() |
JSwat ProjectCommands |
Much of the functionality of JSwat lies in two "places": the graphical user interface, and the command interface. The command interface is accessible both in JSwat's "console" mode and in its default graphical mode. In graphical mode, the command interface is made up of the "Messages" text area and the "Command" text field. Commands are entered in the text field and the results are displayed in the messages area.
To get familiar with the many JSwat commands, I recommend
running the 'help
' command after starting JSwat.
This will present you with various categories of commands and
let you browse through the categories. You can learn what
commands are used for manipulating breakpoints, single-stepping,
and many other debugging-related operations.
JSwat processes what is often called a startup file. That is,
when JSwat is started, it looks for a file with a particular
name and processes it. This file may contain JSwat commands to
be executed when JSwat starts. The file is called
.jswat/jswatrc
and lives in your home directory.
JSwat also looks for a file named .jswatrc
in
the current directory, and each parent directory until it
reaches of the root of the file system, processing the files
in the order they are found.
Here is an example of a startup file.
# # Lines starting with the '#' character are ignored. # # Create some useful command aliases. # The extra whitespace is irrelevant. alias go resume alias cont resume alias quit exit alias finish step out # Set the path where jswat looks for source files. sourcepath /usr/java/src