Restarting a program

ngaix.gif (1051 bytes)ngwin.gif (1069 bytes)Restriction: Restarting a program is supported on AIX and Windows only. It is not supported if you have attached to a process or JVM.

Restriction: You cannot restart a program that you attached to with the debugger. Also, you cannot restart a program that uses Component Broker Series objects.

To start debugging your program from the beginning when your program is stopped, do one of the following:

To start debugging your program again from the beginning when your program is running:

  1. Issue a Halt command by doing one of the following:
  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