Running LN sessions
Running LN sessions through LN UI
LN Studio can attach to a running LN UI and can run sessions started in LN UI. Unlike when you run sessions through BW or Web UI, the sessions are started from LN UI and not from LN Studio.
To run a session:
- Connect to LN Studio from LN UI.
Start LN UI and select . The Debug and Profile 4GL (ttadv1123m000) session starts. Select your activity and ensure the Debug Mode check box is cleared. Click to save the settings.
- Start a session in LN UI.
Step 1 is only required at the beginning, before you start the first session. Subsequent sessions automatically start using the established connection.
Running LN sessions through BW or Web UI
You can run LN sessions from the Eclipse workbench.
For each session that you want to run, you must generate, or manually create, a run configuration. In this configuration you can specify execution parameters.
To run a session for the first time, use one of these procedures:
- Automatically generate a run configuration and then run the session
- Manually create a run configuration and then run the session
When you run a session, the session executes, but you cannot suspend or examine the execution.
Automatically generate a run configuration and then run the session
Complete these steps:
- In the Activity Explorer, right-click the session.
- Select . The session starts. A run configuration is generated automatically.
You can modify a generated run configuration in various ways. For example:
- In the Activity Explorer, right-click the session and select .
- Select .
- Click the command on the button pull-down menu.
The Run - Create, manage, and run configurations dialog box is displayed.
For more information, see Configurations.
Manually create a run configuration and then run the session
- Add a new configuration
- Select , or select on the button pull-down menu. The Configurations dialog box is displayed.
- In the left pane, right-click and select . A new configuration is added in the left pane.
- In the Sessions tab, select an activity from the list.
- Select the session you want to run. The name of the configuration is automatically filled with the description of the selected session.
To select a session, perform one of these actions:
- Select a session linked to your activity from the list.
- Click to select a session that is not linked to your activity. The Browse session dialog box starts. In this dialog box you can select a session on the LN server.
- Specify a session code.
Note: You can only select sessions that belong to the packages displayed in the Component Explorer. - Specify the launch mode for the session.
See Configurations.
- Select the company in which you want to start the session.
- Optionally: Specify additional execution parameters, such as profiling parameters and environment variables, in the other tabs.
See Configurations.
- Click to save the settings.
Note: You can also use run configurations to start sessions in debug mode. - Run the session
Click in the Run dialog box. The session is started in run mode.
Restarting a session in run mode
The workbench keeps a history of all configurations launched.
To restart the most recent launch, click the button in the toolbar.
You can restart any previous launch in various ways. For example:
- Select a previous launch on the button pull-down menu.
- Select and select a previous launch from the sub-menu.
- Select , or select on the button pull-down menu. The Run - Create, manage, and run configurations dialog box is displayed. Select the desired configuration and click .
- In the Activity Explorer, right-click the session and select .
Select Activity command in Web UI
The menu in Web UI contains the command. You can use this command to test software components that are checked out to an LN Studio activity.
For details, see the Web UI online help.