OS Manuals

/usr/lib/jvm/java-26-amazon-corretto/bin/jdb

Amazon Corretto 26 is a no-cost, multi-platform, production-ready distribution of OpenJDK 26

From corretto-fips-26 26.0.2.11.1-r12 (enterprise-packages), captured 2026-11-08 by running jdb --help (exit 0). permalink

Usage: jdb <options> <class> <arguments>

where options include:
    -? -h --help -help print this help message and exit
    -sourcepath <directories separated by ":">
                      directories in which to look for source files
    -attach <address>
                      attach to a running VM at the specified address using standard connector
    -listen <address>
                      wait for a running VM to connect at the specified address using standard connector
    -listenany
                      wait for a running VM to connect at any available address using standard connector
    -launch
                      launch VM immediately instead of waiting for 'run' command
    -listconnectors   list the connectors available in this VM
    -connect <connector-name>:<name1>=<value1>,...
                      connect to target VM using named connector with listed argument values
    -dbgtrace [flags] print info for debugging jdb
    -trackallthreads  Track all threads, including virtual threads.
    -tclient          run the application in the HotSpot(TM) Client Compiler
    -tserver          run the application in the HotSpot(TM) Server Compiler
    -R<option>        forward <option> to debuggee process if launched by jdb, otherwise ignored

options forwarded to debuggee process if launched by jdb (shorthand instead of using -R):
    -v -verbose[:class|gc|jni]
                      turn on verbose mode
    -D<name>=<value>  set a system property
    -classpath <directories separated by ":">
                      list directories in which to look for classes
    -X<option>        non-standard target VM option

<class> is the name of the class to begin debugging
<arguments> are the arguments passed to the main() method of <class>

For command help type 'help' at jdb prompt
Options (13)
OptionDescriptionSource
-attach addressattach to a running VM at the specified address using standard connectorhelp
-listen addresswait for a running VM to connect at the specified address using standard connectorhelp
-listenanywait for a running VM to connect at any available address using standard connectorhelp
-launchlaunch VM immediately instead of waiting for 'run' commandhelp
-listconnectorslist the connectors available in this VMhelp
-connect connector-name>:<name1>=<value1connect to target VM using named connector with listed argument valueshelp
-trackallthreadsTrack all threads, including virtual threads.help
-tclientrun the application in the HotSpot(TM) Client Compilerhelp
-tserverrun the application in the HotSpot(TM) Server Compilerhelp
-R optionforward <option> to debuggee process if launched by jdb, otherwise ignoredhelp
-v -verbose[:class|gc|jniturn on verbose modehelp
-D name>=<valueset a system propertyhelp
-X optionnon-standard target VM optionhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.