views:

57

answers:

2

Does NetBeans have something akin to "Set Next Statement/Instruction" when debugging in Java?

A: 

No, unfortunately. This is one feature from Visual Studio that I really miss, but you just deal with it...

Justin Ethier
NetBeans has "Step Over" and "Step Over Expression". Not sure what the difference is?
Zxion ee
I have not used "Step Over Expression" but it looks like the idea is that you can step through multiple expressions on the same line, whereas "Step Over" would just step over the entire line. They talk about it at http://wiki.netbeans.org/DebuggerImprovements
Justin Ethier
I think its possible, see my answer. Maybe I misunderstood the 'set next statement' concept.
Karussell
A: 

How does 'Set Next Statement/Instruction' work?

You could set the cursor or a breakpoint to a specific line and resume debugging until this point via F4 or F5. Would this help?

Otherwise the keyboard is your friend:

  • F7 == 'go into'
  • F8 == 'next line'
  • F5 == 'resume'
  • F4 == run to cursor
  • etc see the Debug-Menu-entry
Karussell