Skipping over 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. Ensure the Source pane is set to source view. To set the Source pane to source view, select Source > Source View from the menu bar.
  2. Scroll to the line where there are statements that you want to avoid executing or you want to execute again.
  3. Jump to the line by doing one of the following:

ngaix.gif (307 bytes)ngwin.gif (301 bytes)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