Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse; Skipping over a code segment

 
Leslie Chaim
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible from when debugging to skip over a section of code, for example:

I'd like to skip over the for loop.
I am using Eclipse 3.0.
Thanks,
Leslie
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Leslie,
You can skip to the end of the method using "run-to-return." The keyboard shortcut is F7.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right-click on the line you want to "jump" to and select "run to line".
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ilja,
Which line would you click on? The closing brace or the method signature?
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd try the closing brace. I'm not sure, though.
 
Leslie Chaim
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I may have phrased it differently, but what I meant was not run-to stuff rather skip-over as if it were commented.
BTW, in Eclipse 3.0 the run-to-line shortcut is Ctrl-R.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So you don't want to execute it?
The only way I would know is actually commenting the code, save and hope that hotswap works...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic