Execution Control Commands

Execution control commands allow you to change the execution state of code being executed.

Java Execution Control Commands

Command

Name

Description

Availability

Resume button

Resume

Resumes a suspended thread.

Context menu, Run menu and view action
Step Into button

Step Into

Steps into the highlighted statement.

Context menu, Run menu and view action
Step Over button

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.

Context menu, Run menu and view action
Run to Return button

Step Return

Steps out of the current method. This option stops execution after exiting the current method.

Context menu, Run menu and view action
Suspend button

Suspend

Suspends the selected thread of a target so that you can browse or modify code, inspect data, step, and so on.

Context menu, Run menu and view action
Terminate button

Terminate

Terminates the selected debug target.

Context menu, Run menu and view action
Terminate and Relaunch Terminate & Relaunch Terminates the selected debug target and relaunches it. Context menu
Terminate & Remove command in context menu

Terminate & Remove

Terminates the selected debug target and removes it from the view.

Context menu
Terminate All command in context menu

Terminate/Disconnect All

Terminates all active launches in the view.

Context menu

See the Debug View for more information.

Related concepts

Debugger
Local debugging
Remote debugging

Related tasks

Changing debugger launch options
Connecting to a remote VM with the Remote Java application launch configuration
Disconnecting from a VM
Launching a Java program
Preparing to debug
Resuming the execution of suspended threads
Running and debugging
Stepping through the execution of a program
Suspending threads

Related reference

Debug View
Debug preferences
Run Menu