Recipe 5.7 Running to a Line of Code You Select

     

5.7.1 Problem

You want to stop execution at a specific line of code that doesn't have a breakpoint.

5.7.2 Solution

Select Run Run to Line.

5.7.3 Discussion

Besides resuming execution until a breakpoint is encountered , you also can use the Run Run to Line option. Just click a line, and select Run Run to Line; execution will continue until that line is reached. This option is often extremely useful while debugging to skip over large sections of code and to set ad hoc breakpoints on the fly.

5.7.4 See Also

Recipe 5.3 on setting up a debugging session; Recipe 5.4 on setting a breakpoint; Recipe 5.5 on stepping through your code; Recipe 5.6 on running code until a breakpoint is encountered.



Eclipse Cookbook
Inside XML (Inside (New Riders))
ISBN: 596007108
EAN: 2147483647
Year: 2006
Pages: 232
Authors: Steve Holzner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net