IntelliJ IDEA
 
Get IntelliJ IDEA

Alter the program's execution flow

Last modified: 12 November 2024

While debugging an application, you typically follow the normal flow of a program. However, there are cases when you need to deviate from it.

This can be required in order to reproduce certain conditions or to test how the program deals with special cases, such as null or an exception. Also, this is convenient when you need to skip particular parts of the program that aren't related to the problem you are currently examining.