"Step out of loop" in debugger

Answered

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.

7 comments
Comment actions Permalink

+1

Where is the JIRA issue to vote for?

Tom

0
Comment actions Permalink

+1

Post it here, I want that bad :/

0
Comment actions Permalink

Mmmmm, +1

--
Rob Harwood
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Nice idea! I've found myself wanting this as well. Posted to JIRA:

http://www.jetbrains.net/jira/browse/IDEA-2304

Ciao,
Gordon

--
Gordon Tyler (Software Developer)
Quest Software <http://www.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: (416) 933-5046 | Fax: (416) 933-5001

0
Comment actions Permalink

In this case, during a debug session, I place my cursor just right out of the loop, and select Run > Run to Cursor (Alt + F9) - now you are out of the loop.

2
Comment actions Permalink

@Quazi thanks for sharing Run to Cursor method. Handy indeed

 

0

Please sign in to leave a comment.