Restarting a program

To start debugging your program from the beginning if your program is stopped, click on nbrestrt.gif (179 bytes) in the toolbar or select Debug > Restart from the menu bar.

To start debugging your program again from the beginning, if your program is not stopped:

  1. Issue a Halt command by clicking on nbhalt.gif (126 bytes) in the toolbar or selecting Debug > Halt from the menu bar, if the program is currently executing within the debugger.
  2. Set a breakpoint at the location you want to run to, if it is not the beginning of your program and you have not already set a breakpoint there.
  3. Click on nbrestrt.gif (179 bytes) in the toolbar or select Debug > Restart from the menu bar.

If the previous run of your program produced side effects such as the creation of an output file 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.

Related Tasks
ngaix.gif (1051 bytes)ngwin.gif (1069 bytes)Halting execution of a program
Running a program