History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-11000
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Eugene Zhuravlev
Reporter: Gordon Tyler
Votes: 14
Watchers: 7
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

"Step out of loop" in debugger

Created: 30 May 05 19:52   Updated: 06 Nov 08 23:29
Component/s: Debugger
Fix Version/s: Undefined

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 3,341
Severity: Medium


 Description  « Hide
Originally posted by Victor Grazi on the community forum:

When debugging, I frequently find myself in a loop, and I want to finish the loop and continue debugging that method.

The only way to do that is to set a break point outside the loop, or position the cursor outside the loop and do "run until cursor".

I think it would be good if there were a feature for stepping out of a loop and continuing in that method. It would be similar to "step out of method" except instead of bringing you outside the method, it would just bring you outside this loop, in the same method.



 All   Comments   Work Log   Change History      Sort Order:
Dave Yost - 29 Nov 05 04:22
This feature could be more powerful and labor-saving than it might first appear. I think it should work like this:

If the loop is exited by a break or return statement, stop there; otherwise, stop at the first opportunity outside the loop.

BTW, I've wanted this feature in debuggers for many years now.


Esko Luontola - 07 Dec 06 23:27
This feature should also handle loops inside loops in a smart way. I think it should exit only one loop at a time (the innermost loop).