house fly

JSwat Project

Testing the Commands


Much of the supported functionality of JSwat is available via typed commands.

about

Shows the about information for JSwat.

alias

Create a command alias, or display alias definitions.

apropos

Searches the command descriptions for keywords.

attach

Attach remotely to a running VM.

brkinfo

Show information regarding a breakpoint.

catch

Break when the specified exception is thrown.

class

Display information about a class or interface.

classes

List all classes loaded in the debuggee VM.

classpath

Displays or sets the classpath of the debuggee VM.

clear

Clear a breakpoint.

close

Closes the currently active debugging session.

condition

Add or remove conditions from breakpoints.

detach

Detaches from the remote VM without terminating it.

disable

Disables a breakpoint.

disablegc

Disables garbage collection for an object.

down

Move down the stack frame.

dump

Prints all fields of an object.

enable

Enables a breakpoint.

enablegc

Enables garbage collection for an object.

exclude

Displays and manages the single-step class exclusion filters.

exit

Closes the active debugging session, and exits JSwat if there are no more sessions.

fields

Print names of data members of a class.

frame

Set the current stack frame.

help

Explains how to use JSwat commands.

history

Shows a command history.

interrupt

Interrupts a given thread.

kill

Terminate one or all threads in the debuggee VM.

lines

Print the line numbers of a method.

listen

Listens for a connection from a debuggee VM.

load

Create a debuggee VM to be debugged, without starting it.

locals

Display visible local variables and field variables.

lock

Display monitor and waiting thread information for an object.

macro

Create a command macro.

methods

List methods of a class.

monitor

Add or remove monitors from breakpoints.

next

Step one line, stepping over method calls.

nexti

Step one instruction, stepping over method calls.

options

Show and modify program options.

print

Print a local or field variable value.

read

Executes the commands in the given command file.

resume

Resume execution of one or all threads.

run

Create a debuggee VM to be debugged and immediately start it.

runto

Sets a temporary breakpoint at the given location and resumes the debuggee VM.

set

Changes the value of a variable.

sourcepath

Displays or sets the source path.

stderr

Prints a message to standard error of the JSwat JVM.

stdin

Sends text to the debuggee VM's standard input stream.

stdout

Prints a message to standard output of the JSwat JVM.

step

Execute a single line, stepping into methods.

stepi

Execute a single instruction, stepping into methods.

stop

Set a breakpoint at some location.

suspend

Suspend execution of one or all threads.

thread

Set the current thread.

threadgroups

List all known thread groups.

threadlocks

Display thread lock information.

threads

List all known threads.

unalias

Remove a command alias.

up

Move up by one in the stack frame.

version

Display version information.

view

View a source file.

vmlist

Shows a list of running VMs that are debuggable.

where

Display stack frame of thread(s).

wherei

Display stack frame of thread(s) with pc info.



Back