# Changing the active perspective when launching

You can control which perspective becomes active when a program is launched and when it suspends. The setting is configurable for each launch configuration type, for each of the launch modes it supports.

To activate a particular perspective when a program is launched, do the following:

1. Open the debugger launch options preferences page (Window > Preferences > Run/Debug > Launching).
2. Select the Always option for the Open the associated perspective when launching preference. This will cause the perspective associated with a program to become active whenever it is launched.

To activate a particular perspective when a program is suspends, do the following:

1. Open the debugger preferences page (Window > Preferences > Run/Debug).
2. Select the Always option for the Open the associated perspective when a breakpoint is hit preference. This will cause the perspective associated with a program to become active whenever a program suspends.

To associate a particular perspective with a program, do the following:

1. Open the run dialog (Run > Run...).
2. Select the type of launch configuration (program) that you would like to associate a perspective with (for example, Java Application). The Perspectives tab will be displayed.
3. For each launch mode, select the desired perspective using the combo box. This will cause the perspective you choose to become active based on your preference settings (i.e. when a program is launched and/or when it suspends).
4. Press the Apply button to save the settings.

If the specified perspective is not open at the time it needs to be activated, that perspective is created.

Debugger
Remote debugging
Local debugging
Java perspectives

Running and debugging
Setting execution arguments
Launching a Java program

Console view
Debug preferences
Debug view
Run and debug actions