How can I set the current line of execution in the eclipse java debugger?

前端 未结 5 1858
野性不改
野性不改 2020-12-25 12:34

I want to force the current execution line to a specific line in the same function, possibly skipping intermediate lines. All my old school debuggers had this feature, but I

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-25 13:06

    "Run to line" appears to need the program to be running and in a paused state to use. The other option is to set a breakpoint for that line when running in debug-mode.

    1. Double-click far-left vertical bar in the source pane on the same line to add a breakpoint; or,
    2. Select the line and go to Run > Toggle Breakpoint.

    At least, this is in Eclipse 3.3.2.

提交回复
热议问题