Using Sun WorkShop

Managing Sessions

During a Sun WorkShop session, you can debug any number of programs. A list of these programs is maintained in the Active Sessions dialog box and in the Sessions Display in the Debugging window, so you can easily terminate, detach, quit, or move between programs. The current program is marked with an arrow.

To manage your sessions using the Active Sessions dialog box:

  1. In the Debugging window, choose Debug > Manage Sessions.

    The Active Sessions dialog box opens.

  2. Select a program from the scrolling list.

  3. Click one of the following buttons:

     Set Current Makes the selected program the current program. The Stack pane, the editor window, and other displays update to reflect the context of the selected program.
     Terminate Terminates the program without terminating the debugging session.
     Detach Detaches the selected program without terminating the program or the debugging session.
     Quit Session Terminates the selected program and removes the debugging session. If you have only one session and you click this button, the session is removed and the Debugging window notes that there are no debugging sessions.

  4. Click Close.

To manage your sessions in the Sessions display of the Debugging window:

  1. If the Sessions/Threads Pane is not open, drag the sash above the Stack Pane to open it.

  2. If the pane is showing the Threads Display, click the Sessions radio button at the top of the pane.


    Note -

    Be careful when debugging multiple programs. Debugging more than two programs may slow down your system considerably. Always be sure to terminate, detach, or quit a session you no longer need.