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
- Select the line where the program execution is to suspend.
- 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.
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 .
- From the Window menu, select Preferences>Run/Debug. The Run/Debug Preferences dialog box appears.
- 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*