Software Dev
Software Dev

Reputation: 1102

Add "Run to Line" Button in Java Eclipse

I am using Java Eclipse, and when I want to "run to line" in the debugger, I need to right-click on the line I want to run to, and select "Run to Line". Is it possible to add a "Run to Line" button near the other debug buttons (i.e. near "Step Into" and "Step Over")? In Visual Studio, this button is called "Run to Cursor."

Upvotes: 1

Views: 1304

Answers (1)

howlger
howlger

Reputation: 34135

Yes, this is possible. To show the Run to Line button in the main toolbar, do the following:

  1. Switch to the Debug Perspective
  2. Window > Perspective > Customize Perspective...
  3. In the Tool Bar Visibility tab check the checkbox Debug > Run to Line

In addition, the Run to Line command is also accessible via the shortcut Ctrl+R and via Quick Access (Ctrl+3).

Upvotes: 5

Related Questions