jdk/src/solaris/doc/sun/man/man1/ja/jdb.1
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 2 90ce3da70b43
child 2692 345bc8d65b19
permissions -rw-r--r--
Initial load
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
'\" t
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
.\" Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
.\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
.\" This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
.\" under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
.\" published by the Free Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
.\" This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
.\" FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
.\" version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
.\" accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
.\" You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
.\" 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
.\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
.\" Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
.\" CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
.\" have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
.\" ` 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
.\" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
.\"  This document was created by saving an HTML file as text
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
.\"  from the JavaSoft web site:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
.\" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
.\" http://java.sun.com/j2se/1.4/docs/tooldocs/tools.html
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
.\" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
.\"  and adding appropriate troff macros.  Because the JavaSoft web site 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
.\"  man pages can change without notice, it may be helpful to diff
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
.\"  files to identify changes other than new functionality. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
.\" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
.TH jdb 1 "2006 年 9 月 4 日" "Java SE 6" "ユーザーコマンド"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
.SH "名前"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
jdb \- Java デバッガ
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
\f3jdb\fP は、Java 言語プログラムのバグを見つけて修正するために使用するツールです。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
.SH "形式"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
.B jdb 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
[ 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
.I options
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
] [
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
.I class
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
] [
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
.I  arguments
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
]
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
.TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
.I options
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
以下に指定するコマンド行オプション
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
.I class
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
デバッグを開始するクラス名
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
.I arguments
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
クラスの
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
.B main(\|)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
メソッドに渡される引数
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
.SH "機能説明"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
.IX "Java debugger" "" "Java debugger \(em \fLjdb\fP"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
.IX "jdb" "" "\fLjdb\fP \(em Java debugger"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
Java デバッガの
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
.BR jdb
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
は、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
Java
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
クラス用の単純なコマンド行デバッガです。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
「\f2Java Platform Debugger Architecture\fP」
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
 (http://java.sun.com/javase/6/docs/technotes/guides/jpda/index.html) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
を画面に表示しながら実行し、ローカルまたはリモートの Java 仮想マシン
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
の検査とデバッグを行うことができます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
.SS "jdb セッションの開始"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
.IX "jdb" "Starting a jdb Session" "\fLjdb\fP \(em Java debugger"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
jdb セッションを開始するにはさまざまな方法があります。 もっとも頻繁に使
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
われるのは、アプリケーションのメインクラスをデバッグして、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
.B jdb
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
から新しく Java 仮想マシン (VM) を起動する方法です。 コマンド行で、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
.BR java (1)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
の代わりに
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
.B jdb
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
コマンドを入力します。たとえば、アプリケーションのメインクラスが
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
.BR MyClass
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
の場合は、次のコマンドを使用して jdb 環境でデバッグします。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
.RS
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
.B % jdb MyClass
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
このようにして起動すると、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
.B jdb
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
は 2 つ目の Java VM を呼び出し、指定されたパラメータを渡し、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
指定されたクラスをロードします。そのあと、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
クラスの最初の命令を実行する前に VM を停止させます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
.B jdb
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
のもう 1 つの使用方法は、すでに起動している Java VM に
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
.B jdb
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
を接続することです。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
jdb が接続する VM を、その実行中に起動するための構文を次に示します。 これは、インプロセスデバッグ用ライブラリをロードし、接続の種類を指定します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
\-agentlib:jdwp=transport=dt_socket,server=y,suspend=n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
たとえば、次のコマンドは
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
.B MyClass
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
アプリケーションを実行し、後で
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
.B jdb 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
を接続できるようにします。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
 % java \-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n MyClass
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
次のコマンドで
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
.B jdb 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
を VM に接続できます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
.RS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
.B % jdb \-attach 8000
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
このとき、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
.B jdb
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
は新しい VM を起動するのではなく、既存の VM に接続するので、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
.B jdb 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
コマンド行で
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
.B MyClass
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
を指定しないことに注意してください。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
これ以外にもデバッガ (jdb) を VM に接続する方法はたくさんあり、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
.BR jdb
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
はそのすべての方法をサポートしています。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
このような接続オプションについては、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
http://java.sun.com/javase/6/docs/technotes/guides/jpda/conninv.html
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
で Java Platform Debugger Architecture のマニュアルを参照してください。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
\f3jdb\fP で使用するために J2SE 1.4.2 以前の VM を起動する方法については、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
http://java.sun.com/j2se/1.4.2/docs/technotes/guides/jpda/conninv.html
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
の 1.4.2 のドキュメントを参照してください。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
.SS " jdb 基本コマンド"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
.IX "jdb" "Basic jdb Commands" "\fLjdb\fP \(em Java debugger"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
以下に
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
.B jdb
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
基本コマンドの一覧を示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
Java
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
デバッガで使用可能なその他のコマンドは、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
.B help
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
コマンドで表示できます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
.TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
.B help または ?
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
.BR jdb
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
のコマンドの中でもっとも重要なのが、この
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
.B help
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
コマンドです。利用可能なコマンドの一覧を、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
各コマンドの簡単な説明つきで表示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
.TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
.B run
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
.BR jdb
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
を起動して必要なブレークポイントを設定したあとに、このコマンドを使用して、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
デバッグするアプリケーションの実行を開始します。このコマンドは、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
デバッグするアプリケーションを
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
.B jdb
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
から起動するときにだけ使用できます。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
既存の VM に接続する場合とは異なります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
.B cont
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
ブレークポイント、例外、またはステップ実行のあとで、デバッグ中の
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
アプリケーションの実行を継続します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
.TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
.B print
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
Java オブジェクトおよびプリミティブ値を表示します。 プリミティブ型の変数
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
またはフィールドの場合には、実際の値を出力します。 オブジェクトの場合
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
には、短い説明を出力します。 オブジェクトについては、以降の
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
.B dump
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
コマンドの説明を参照してください。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
注: 局所
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
(スタック)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
変数をブラウズするには、そのクラスが
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
.B javac \-g
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
オプションでコンパイルされている必要があります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
.B print
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
は、メソッドの呼び出しを含む多数の簡単な Java 式をサポートします。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
次に例を示します。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
.RS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
\(bu
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
.B print MyClass.myStaticField 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
.PD 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
\(bu
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
.B print myObj.myInstanceField 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
\(bu
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
\f3print\f1 \f2i\f1 \f3+\f1 \f2j\f1 \f3+\f1 \f2k\f1 (
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
.IR i、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
.IR j 、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
および 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
.I k
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
はプリミティブであり、フィールドまたは局所変数のいずれか) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
\(bu
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
\f3print myObj.myMethod(\|)\f1 (
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
.B myMethod
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
が null 以外を返す場合) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
\(bu
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
.B print new java.lang.String("Hello").length(\|)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
.PD
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
.B dump
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
プリミティブ値の場合には、このコマンドは
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
.BR print
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
と同じです。オブジェクトの場合には、オブジェクト内に定義されている
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
各フィールドの現在の値を出力します。 static フィールドと instance
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
フィールドを出力します。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
.B dump
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
コマンドは、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
.B print
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
コマンドと同じ式をサポートします。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
.B threads
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
現在実行中のスレッドを一覧表示します。スレッドごとに、名前と現在の状態、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
およびほかのコマンドに使用できるインデックスを出力します。次に例を
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
示します。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
.RS 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
.B 4. (java.lang.Thread)0x1 main      running
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
.RS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
この例では、スレッドインデックスは
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
.BR 4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
であり、スレッドは
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
.BR java.lang.Thread 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
のインスタンスです。スレッドの名前は「
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
.BR main
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
」であり、現在実行中です。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
.TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
.B thread
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
現在のスレッドを選択します。 多くの
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
.B jdb
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
コマンドは、現在のスレッドの設定に基づいて実行されます。 スレッドは、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
.B threads 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
コマンドで説明するスレッドインデックスとともに指定します。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
.TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
.B where
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
引数のない
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
.B where
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
コマンドは、現在のスレッド
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
.B thread
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
コマンドで設定)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
のスタックをダンプします。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
.B where all
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
と指定すると、現在のスレッドグループにある全スレッドの
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
スタックをダンプします。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
.BI where " threadindex"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
と指定すると、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
.I threadindex
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
が示すスレッドのスタックだけをダンプします。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
現在のスレッドが (ブレークポイントなどのイベントや
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
.B suspend
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
コマンドで) 中断している場合、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
.B print 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
コマンドや
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
.B dump
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
コマンドを使用すれば、局所変数やフィールドを表示できます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
どのスタックフレームを現在のフレームにするかは、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
.B up
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
および
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
.B down
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
コマンドで選択できます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
.SS "ブレークポイント用コマンド"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
.IX "jdb" "Breakpoints" "\fLjdb\fP \(em Java debugger"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
.B jdb
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
では、ブレークポイントを行番号で、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
またはメソッドの最初の命令で
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
設定できます。次に例を示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
.TP 25
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
.B stop at MyClass:22
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
.BR MyClass
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
が含まれるソースファイルの
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
.B 22
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
行目の最初の命令にブレークポイントを設定する
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
.B stop in java.lang.String.length
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
.BR java.lang.String.length
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
メソッドの最初にブレークポイントを設定する
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
.BI "stop in MyClass." init
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
.I init
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
.B MyClass
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
コンストラクタを識別する
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
.BI "stop in MyClass." clinit
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
.I clinit
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
.BR MyClass
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
の静的な初期化コードを識別する 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
メソッドがオーバーロードされる場合には、メソッドの引数の型も指定して、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
ブレークポイントに対して適切なメソッドが選択されるようにしなければなりませ
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
ん。 たとえば、次のように指定します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
.RS 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
.B MyClass.myMethod(int,java.lang.String)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
または
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
.RS 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
.B MyClass.myMethod() 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
.B clear
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
コマンドは、「
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
.BR clear MyClass:45
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
」のような構文を使用してブレークポイントを削除します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
引数を指定しないで
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
.B clear
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
コマンドを使用すると、現在設定されてい
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
るすべてのブレークポイントが表示されます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
.B cont
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
コマンドで実行が継続します。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
.SS "コマンドのステップ実行"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
.IX "jdb" "Stepping" "\fLjdb\fP \(em Java debugger"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
.B step
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
コマンドは、現在のスタックフレームまたは呼び出されたメソッド内で、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
次の行を実行します。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
.B next
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
コマンドは、現在のスタックフレームの次の行を
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
実行します。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
.SS "例外処理用コマンド"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
.IX "jdb" "Exceptions" "\fLjdb\fP \(em Java debugger"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
スローしているスレッドの呼び出しスタック上のどこにも catch 文がないような
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
例外が発生すると、VM は通常、例外トレースを出力して終了します。 ただし、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
.BR jdb 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
環境で実行している場合は、このような例外が発生すると
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
.B jdb
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
に制御が戻ります。 次に、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
.BR jdb 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
を使用して例外の原因を診断します。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
.TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
.B catch
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
デバッグ中のアプリケーションは他の例外がスローされたところで停止します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
次に例を示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
.RS 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
.B catch java.io.FileNotFoundException
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
.RS 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
または
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
.RS 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
.B catch mypackage.BigTroubleException
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
.RS 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
例外が指定したクラス (または、サブクラス) のインスタンスである場合、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
アプリケーションはスローされたところで停止します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
.TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
.B ignore
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
以前の
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
.B catch
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
コマンドの効果を無効にします。なお、この指定によって例外を無視するのは
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
デバッガだけであり、デバッグされた VM は無視しません。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
.SH "コマンド行オプション"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
コマンド行で Java アプリケーション起動ツールの代わりに
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
.B jdb
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
を使用する場合、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
.B jdb
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
は、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
.BR \-D、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
.BR \-classpath、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
.BI \-X option\f1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
など、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
.BR java (1)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
コマンドと同じオプションを多数使用できます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
.B jdb 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
は、そのほかに次のオプションも使用できます。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
.BI \-help 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
ヘルプメッセージを表示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
.BI \-sourcepath " dir1\f1:\f2dir2\f1:..."
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
指定されたパスで、ソースファイルを検索します。 このオプションが
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
指定されていない場合は、デフォルトパスの「.」を検索します。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
.BI \-attach " address"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
デフォルトの接続機構を使用して、すでに実行中の VM にデバッガを接続
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
します。 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
.BI \-listen " address"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
実行中の VM が標準のコネクタを使って指定されたアドレスに接続するのを待機します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
.BI \-listenany
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
実行中の VM が標準のコネクタを使って利用可能な任意のアドレスに接続するのを待機します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
.B \-launch
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
デバッグするアプリケーションを
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
.BR jdb
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
の起動後ただちに起動します。 このオプションを使用すると、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
.B run
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
コマンドを使用する必要はありません。 デバッグするアプリケーションは、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
起動後、最初のアプリケーションクラスがロードされる直前に停止します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
その時点で、必要なブレークポイントを設定できます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
実行を継続するには
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
.B cont
90ce3da70b43 Initial load
duke
parents:
diff changeset
   445
コマンドを使用します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
\-listconnectors 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
この VM で利用できるコネクタを一覧表示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   449
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
\-connect
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
<connector\-name>:<name1>=<value1>,... 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
一覧表示された引数の値と指定のコネクタを使ってターゲット VM に接続します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   453
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   454
\-dbgtrace [flags] 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   455
jdb のデバッグ情報を出力します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   456
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   457
\-tclient 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   458
Java HotSpot(tm) VM (クライアント) 内でアプリケーションを実行します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   460
\-tserver 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   461
Java HotSpot(tm) VM (サーバ) 内でアプリケーションを実行します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   462
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   463
.BI \-J "option"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   464
jdb の実行に使用される Java 仮想マシンに \f2option\fP を渡します。(アプリケーション Java 仮想マシンに対するオプションは、\f3run\fP コマンドに渡される。)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   465
たとえば、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   466
.I \-J-Xms48m
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
は、起動時に使用するメモリを 48M バイトに設定します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   468
90ce3da70b43 Initial load
duke
parents:
diff changeset
   469
90ce3da70b43 Initial load
duke
parents:
diff changeset
   470
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   471
これ以外にも、デバッガをデバッグされる VM に接続するための代替機構
90ce3da70b43 Initial load
duke
parents:
diff changeset
   472
用のオプションがサポートされています。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
このような接続の代替機構については、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   474
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
http://java.sun.com/javase/6/docs/technotes/guides/jpda/conninv.html
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
の Java Platform Debugger Architecture のマニュアルを参照してください。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
デバッグ対象のプロセスに転送されるオプション
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
\-v \-verbose[:class|gc|jni] 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   483
冗長モードにします。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   484
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
\-D<name>=<value> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
システムプロパティを設定します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
\-classpath <directories separated by
90ce3da70b43 Initial load
duke
parents:
diff changeset
   489
":"> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   490
クラスを検索するディレクトリを一覧表示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   492
\-X<option> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   493
非標準ターゲット VM オプションです。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   494
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   495
.SH "関連項目"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   496
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   497
90ce3da70b43 Initial load
duke
parents:
diff changeset
   498
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   499
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   500
javac、java、javah、javap、javadoc
90ce3da70b43 Initial load
duke
parents:
diff changeset
   501
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   502
90ce3da70b43 Initial load
duke
parents:
diff changeset
   503
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   504