Multiple Debugging Processes

Related Topics:

Managing Sessions Debugging a Program New to Sun WorkShop
Attaching to a Running Process

You can debug more than one program at a time, with each program connected to a separate debugging session. Following are three examples of programs you may want to debug simultaneously:

Although you are debugging multiple sessions, you can see the context of only one session at a time. The Active Sessions Dialog Box maintains a list of all debugging sessions so that you can move between them. The current program is marked with an arrow. When you switch to a different session, the Debugging Window, the editor window, the Dbx Commands Window and the other displays reflect the context of the new session.


Note - Debugging multiple sessions consumes resources and may slow down your system. The Debugging window states how many active sessions you have. To remove sessions you no longer need, click Quit Session or Detach in the Active Sessions dialog box.

Note - If you are debugging a program, and you ask to debug another program, a message tells you that you are currently debugging a program. You will be prompted to terminate or detach the current session and load a new debugging session, reuse the current session, or debug both sessions. Choose to debug both only if you want to debug both programs simultaneously.