IntelliJ IDEA
 
Get IntelliJ IDEA
You are viewing the documentation for an earlier version of IntelliJ IDEA.

Alter the program's execution flow

Last modified: 11 February 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 issues (for example, processes a null value or handles 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.