Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to skip a statement in Eclipse during debugging

Is it possible to skip a statement in Eclipse while debugging? Suppose the process stopped at breakpoint and I want to skip the breakpoint line ( or maybe a few lines below), can I do it? On the debug tab, it only has "Step into", "Step over" and "Step return" buttons.

I did google around but couldn't find anything, hopefully I can find an answer here.

like image 864
Frank Fu Avatar asked May 18 '10 22:05

Frank Fu


People also ask

How do I skip a loop while debugging?

As a user I would suggest the following: make a hotkey to exit the loop in debugging mode, for example ctrl-shift-F11.

Can statements be skipped using new debugger?

In debugger just click on the second WRITE statement and use the menu path Debugging –> Goto Statement as shown below, so that the “LEAVE PROGRAM” statement will be skipped by the debugger. SHIFT + F12 is the shortcut for Goto Statement in ABAP new debugger.


1 Answers

If you are debugging, you can comment out the line you want to skip and then recompile, which will hotswap the code and keep you within the method you are currently in, allowing you to skip the line.

Depending on what you want to have happen, you could simply execute the line after the one you want to skip, select the code and choose Display from the r-click menu. This will execute the selected code and provide the result in a popup.

like image 66
akf Avatar answered Sep 18 '22 11:09

akf