### Restart Your Program

Note: You cannot restart a program that you attached to with the debugger.

You can start debugging your program again from the beginning (the start of the main function) by doing the following:

1. If the program is currently executing within the debugger, issue a Halt command by selecting Run->Halt from a Source window or the Session Control window, or pressing the button.
2. Set a breakpoint at the location you want to run to, if it is not the start of the main function and you have not already set a breakpoint there.
3. If the previous run of your program performed file output and the program logic will be changed by the existence of such files from a previous debug session, you may want to erase these files before restarting.
4. Select Run->Restart from a Source window or the Session Control window.
5. If you want to run up to a breakpoint, issue the Run command by pressing Ctrl+R from any window (or R from a Source window) or pressing the button.

Halt Execution of a Debuggee Program
Set Breakpoints