"Step out of loop" in debugger

已回答

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.

0
Avatar
Permanently deleted user

+1

Where is the JIRA issue to vote for?

Tom

0

+1

Post it here, I want that bad :/

0
Avatar
Permanently deleted user

Mmmmm, +1

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

0
Avatar
Permanently deleted user

+1

0
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

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

 

0

请先登录再写评论。