Skipping over sections of a program

Restriction: When debugging interpreted Java programs, you cannot skip sections of a program.

You can skip over sections of code to avoid executing certain statements or to move to a position that certain statements can be executed again.

To skip over a section of code:

  1. Scroll to the line where there are statements that you want to avoid executing or you want to execute again.
  2. Jump to the line by doing one of the following:

Using Jump to Location can cause unpredictable results if you jump outside the current method, jump over code that has side-effects (for example, calls to methods whose results are assigned to variables, or methods that change the contents of variables passed by reference), or jump into the middle of a block such as a for loop

ngrelt.gif (466 bytes)
Running a program