To define and launch a server from the Run/Debug dialog
Choose Debug As > Debug
The Debug dialog displays.
Click the New button to create a new launch configuration.
Enter a name for your launch configuration in the Name field.
For Server, select the name of a previously created server configuration.
Click ... and select your project.
Click the Apply button to save the launch configuration.
Click the Debug button to start debugging with this launch configuration.
A progress bar and this message display:
Launching new configuration.... establishing debug connection.
The Debug dialog closes.
The Console view displays the server output, and the application's welcome page opens in debug mode in the browser.
Note: To create a run launch configuration instead of a debug launch configuration, you follow the same steps as above except that you choose the Run As > Run... menu command instead of Debug As > Debug....