Debugger--jdb.exe

Source: Internet
Author: User
Tags memory usage thread

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.