Default language.

Run to Line


A Run to Line breakpoint is a convenient way to resume a debugging session until program execution encounters a particular line of code.

To set a Run to Line breakpoint

  1. Select the line where the program execution is to suspend.
  2. Do one of the following:

    • Right-click and select Run to Line.
    • From the Run menu, select Run to Line.

Program execution resumes and then suspends immediately before the specified run to line is executed.

Note

If the specified run to line is not in the active code path, the program will not suspend due to the Run to Line breakpoint. It could potentially run to termination, provided that execution does not encounter other breakpoints and exceptions.

To skip breakpoints during a Run to Line operation

Breakpoints and exceptions can result in the program suspending prior to reaching the specified run to line. To avoid this situation, before setting a Run to Line breakpoint, do the following so that breakpoints are ignored .

  1. From the Window menu, select Preferences>Run/Debug. The Run/Debug Preferences dialog box appears.
  2. Select the Skip breakpoints during a 'Run to Line' operation check box. The debugger will ignore any breakpoints it encounters during a Run to Line operation.






 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*