### Terminate a Debug Session

To terminate a debug session and exit the debugger, do one of the following:

- Select File->Close debugger from any debugger window that has a File menu.
- Press F3 from any debugger window that is not a dialog
- Switch to the Session Control window and use your windowing system's technique for closing that window. For example, in OS/2 or Windows, double-click on the upper left corner of the window or press Alt+F4.

To terminate a debug session and start another one (local debugging only) do one of the following:

- If you want to start the same program executing again, select Run->Restart from a Source window or the Session Control window.
- Run the current program to completion, if this is feasible. A message window with the text "Program has run to completion" appears. Click on OK. A Startup dialog then appears.
- Select File->Startup from a Source window or the Session Control window.

The debugger locks the load modules for your program from write updates by the compiler until execution completes. If you want to recompile your program and debug it again, you should run the program to completion, exit the debugger, or switch to debugging a different program before recompiling.

Halt Execution of a Debuggee Program