The Java Scheduler provides a command-line debugging environment for Java programs. It can be performed either locally or in a conversation with a remote interpreter.
Jdb can be started on the local machine using the following command:
C:\>jdb classname
When you start a Java routine with the-debug option, you must give jdb a password so that JDB can start running. The following table contains all the JDB commands.
Options feature
Catch Calssid interrupted for specific abnormal exits
Classes lists the currently known classes
Clear Classid:line Clears a breakpoint
Cont continues execution from breakpoint
Down[n frames] Move down one thread's stack
Dump Id[id ...] Show all object information
Exit (or quit) exits the debugger
Help (or?) List all commands
Ignore ClassID ignores specific exception exits
List[line number] Display source code
Load Classbame the Java class to be debugged
Locals display all local variables in the current stack frame
Memory Report Memory Usage
Methods ClassID lists the set of member functions for a class
Print Id[id ...] list objects or domains
Resume [ThreadID ...] recovery thread (Restore all threads by default)
Run class [args] starts to execute the downloaded Java class
Step execution when forward
Stop in Classid:method set a breakpoint in a member function
Stop at Classid:line a breakpoint on one line
Suspend[threadid ...] Stop a thread (by default, all threads are stopped)
Hreads threadgroup Column Outgoing thread
Thread ThreadID set the current thread
Threadgroups Column Thread Group
Threadgroup name sets the current thread group
up [n frames] moves up one thread stack
Use [path] to show or change the source program path
where [ThreadID] or all makes a thread's heap line empty
!! Repeat the last command
-host hostname This command tells Jdb where to set up a remote Java Interpreter dialog process
-password password This option tells JDB which password to use to connect to the remote-running Java dialog process. The password password is provided by the Java interpreter running with the-DEBUG option.