デバッグ (Debug) ビュー

デバッグ ビューでは、実行中のプログラムのスレッドやスタックフレームを管理できます。

ビューの上部にアイコンが表示されないときには、三角のアイコン (View Menu) をクリックし[Show Debug Toolbar]をチェックします。

アイコン

アイコン セッション項目 説明
Launch instance デバッグ対象の種類
Debugger instance  
デバッグ対象を実行しているプロセスの実行状態
Thread instance デバッグ対象のインスタンスの実行状態
Stack frame instance スタック フレーム
Icons - Help - Eclipse Platform (Java)

コマンド

  コマンド 説明
  終了したすべての起動を除去
(Remove All Terminated Launches)
Clears all terminated debug targets from the view display.
再開
(Resume)
Resumes a suspended thread.
中断
(Suspend)
Suspends the selected thread of a target so that you can browse or modify code, inspect data, step, and so on.
終了
(Terminate)
Terminates the selected debug target.
切断
(Disconnect)
Disconnects the debugger from the selected debug target when debugging remotely.
  ステップイン
(Step Into)
Steps into the highlighted statement.
ステップ・オーバー
(Step Over)
Steps over the highlighted statement. Execution will continue at the next line either in the same method or (if you are at the end of a method) it will continue in the method from which the current method was called. The cursor jumps to the declaration of the method and selects this line.
ステップ・リターン
(Step Return)
Steps out of the current method. This option stops execution after exiting the current method.
フレームにドロップ
(Drop to Frame)
This command lets you drop back and reenter a specified stack frame. This feature is similar to "running backwards" and restarting your program part-way through. To drop back and reenter a specified stack frame, select the stack frame that you want to "drop" to, and select Drop to Frame. Some caveats apply to this feature:
  • You cannot drop past a native method on the stack.
  • Global data are unaffected and will retain their current values. For example, a static vector containing elements will not be cleared.

Note: This command is only enabled if the underlying VM supports this feature.

  ステップ・フィルターを使用する
(Use Step Filters)
Toggles step filters on/off. When on, all step functions apply step filters.
Layout 自動
(Automatic)
Configures the debug view to switch layout between a tree and a breadcrumb viewer automatically when the view is resized.
ツリー
(Tree)
Configures the debug view layout to use a tree viewer.
パンくずリスト
(Breadcrumb)
Configures the debug view layout to use a breadcrumb viewer.
パンくずリストの自動展開
(Auto-Expand Breadcrumb)
Configures the Debug Breadcrumb Drop-down to automatically expand elements when opened.
Java モニターの表示
(Show Monitors)
This option can be toggled to display or hide monitors.

Note: this command will only display monitor information if the underlying VM supports it.

システム・スレッドの表示
(Show System Threads)
This option can be toggled to display or hide system threads
修飾名の表示
(Show Qualified Names)
This option can be toggled to display or hide qualified names.
スレッド・グループの表示
(Show Thread Groups)
This option can be toggled to display or hide thread groups

コンテキストメニュー

  コマンド 説明
  宣言された型を開く
(Open Declared Type)
Opens the declared type for the selected stack frame in a new editor.
宣言された型階層を開く
(Open Declared Type Hierarchy)
Opens the type hierarchy for the declared type of the selected stack frame.
  スタックのコピー
(Copy Stack)
Copies the selected stack of suspended threads as well as the state of the running threads to the clipboard.
検索
(Find...)
Opens the debug view element searching dialog.
  ステップ・フィルターの編集
(Edit Step Filters)
Opens the Step Filtering preference page to allowing editing of step filters
型のフィルター
(Filter Type)
Adds the type from the current suspended execution to the listing of step filters
パッケージをフィルターする
(Filter Package)
Adds the containing package for the type from the current suspended execution to the listing of step filters
  終了して再起動
(Terminate and Relaunch)
Terminates the selected debug target and relaunches it.
  再起動
(Relaunch)
This command relaunches the selected debug target.
…の編集
(Edit [configuration name]...)
Opens the launch configuration dialog on the associated launch configuration, allowing you to make changes.
ソース・ルックアップの編集
(Edit Source Lookup)
Opens the source lookup dialog, allowing you to make changes.
ソースをルックアップ
(Lookup Source)
Forces source lookup to take place
終了および除去
(Terminate and Remove)
Terminates the selected debug target and removes it from the view.
すべて終了/切断
(Terminate/Disconnect All)
Terminates all active launches in the view.
  プロパティー
(Properties)
This command displays the properties of the selected launch. It also allows you to view the full command line for a selected process.

デバッグのショートカットキー

Eclipseの情報サイトから、まとめて検索