JDB Syntax - The Java Debugger (JDB)

What is JDB Syntax?

This section describes the syntax of JDB command. The syntax comprises four sections listed as follows:

  • JDB
  • option
  • class
  • arguments

Syntax

The syntax of JDB is as follows.

JDB

It calls jdb.exe from the Java Development Kit.

Options

These comprise the command line selections used to debug a Java program in an effective way. The JDB launcher admits all the options (such as -D, -classpath, and -X) and some additional advanced options such as (-attach, -listen, -launch, etc.).

Class

It is the class name on which you want to perform debugging operations.

Arguments

These are the input values given to a program at runtime. For instance, arg[0], arg[1] to the main() method.
In the above four segments, options is the most important one.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

The Java Debugger (JDB) Topics