![]() |
JSwat ProjectStarting JSwat |
There are several options available when starting the program. Most notable is that JSwat can launch the debuggee VM when passed appropriate arguments on the command line.
java com.bluemarsh.jswat.Main
java -Djava.source.path=/usr/java/src
com.bluemarsh.jswat.Main
sourcepath
' command and
verifying that the output contains
/usr/java/src
.java com.bluemarsh.jswat.Main -classic
java com.bluemarsh.jswat.Main <class>
java com.bluemarsh.jswat.Main -classic
<class>
java com.bluemarsh.jswat.Main <class>
<arg1> <arg2> <arg3>
JSwat supports more than one interface mode. At present the
program defaults to running with a graphical interface based on the
JFC component set. In addition, the program can be made to run
within a console, without any graphical interface at all. This mode
is invoked with the '-console
' switch. It must
be the first switch following the JSwat "Main" class
name. Use the following test cases to test the console-only mode of
the program.
java com.bluemarsh.jswat.Main -console
java -Djava.source.path=/usr/java/src
com.bluemarsh.jswat.Main -console
sourcepath
' command and
verifying that the output contains
/usr/java/src
.java com.bluemarsh.jswat.Main -console
-classic
java com.bluemarsh.jswat.Main -console
<class>
java com.bluemarsh.jswat.Main -console -classic
<class>
java com.bluemarsh.jswat.Main -console <class>
<arg1> <arg2> <arg3>