Modifying Code While Debugging (Integrated Debugger)

When a thread has been suspended, most of the methods on the stack can be edited or replaced by another edition of the method (methods required by the system or those in external classes may not be modified).

To edit a method on the stack:

  1. Select it in the All Programs/Threads pane.
  2. Edit its source code in the Source pane as required.  The Source pane has code-assist; type Ctrl+Spacebar to get help with method and field names.
  3. Select Save from the Source pane's pop-up menu.

To replace a method with another edition:

  1. Select it in the All Programs/Thread pane.
  2. Select Replace With > Previous Edition or Replace With > Another Edition from the method's pop-up menu.
  3. If selecting with another edition, select the desired edition.

In either case, when you resume running the program, execution will drop to the beginning of the method; any side effects of running the method before are not undone.

ngrelc.gif (533 bytes)
The Integrated Debugger
Editions and Versioning

ngrelt.gif (466 bytes)
Replacing Editions in the Workspace (Reloading)
Saving Changes to Code
Debugging During the Development Cycle
Inspecting and Modifying Variable Values
Suspending, Resuming, and Terminating Threads
Stepping Through Methods