When a Java program is launched in debug mode (e.g., by clicking the Debug button), execution of the program can be controlled by the debugger.