Methods, apparatus and articles of manufacture for implementing an extended
run-to function for a selected code portion are provided. One embodiment provides
a method of debugging code using a debugging program. The method comprises, for
a plurality of user-selected statements of the code, automatically setting breakpoints
on each of the plurality of user-selected statements; executing the code until
a breakpoint set on a first encountered statement of the plurality of user-selected
statements is encountered and fired; halting execution at the breakpoint; and displaying
a position at which execution halted via a user interface.