Javatpoint Logo
Javatpoint Logo

JDB Options

Once the compilation of a program has been done, instead of Java application launcher, JDB is used to debug the code. There are various options of java command that are also accepted by JDB such as -D, -X<option>, -classpath.

These are the following additional options accepted by jdb: -

Options Description
-help It is used to display a help message.
-sourcepath It is used to search the source files on the basis of given path.
-attach<address> It is used to attach the debugger to virtual machine by using default connection mechanism
-listen<address> It is used to specify wait for the VM until it connects with the specified address.
-listenany It is used to wait for the VM until it connects with any type of available address.
-launch It is used to launch debugged application immediately instead of waiting for 'run' command.
-listconnectors It is used to list all the connectors available in the VM.
-connect It is used to connect to the target virtual machine by specifying connector name with its argument.
-dgbtrace It is used to display the information for debugging jdb.
-tclient It is used to run the application in the HotSpot Client Compiler.
-tserver It is used to run the application in the HotSpot Server Compiler.
-JOption It is used to pass the option to JVM that can be used to run jdb.





?

Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA