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

Key: IDEABKL-3382
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Eugene Zhuravlev
Reporter: Thomas Singer
Votes: 0
Watchers: 0
Available Workflow Actions

Mark as Stalled
Operations

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

Ability to set temporary, call-stack-bound breakpoints

Created: 26 Jan 05 17:16   Updated: 21 Jul 05 16:21
Component/s: Debugger
Affects Version/s: None
Fix Version/s: None

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


 Description  « Hide
Assume, you have a method, which can get called recursively (e.g. a LayoutManager). The code you are debugging is an iteration:

public void layoutContainer(Container target) {
for (Iterator it = getAllComponents(); it.hasNext(); ) { final Component comp = (Component)it.next(); layOutComponent(comp); }
}

Your current execution point is at the for()-line and you want to press, e.g., F9 to iterate over all components. Now I want to set a temporary breakpoint at the layOutComponent()-line. Setting this breakpoint remembers the call-stack. When the breakpoint is hit the next time, it will verify the call-stack with the remembered one and it only stops, when it matches or lost the method, e.g. returned or threw an exception. In the latter case, the breakpoint automatically will be removed or disabled.



 All   Comments   Work Log   Change History      Sort Order:
Eugene Zhuravlev - 14 Mar 05 19:21
Isn't "force stepover" feature what you need?
If you step like this, it will ingore all breakpoint hits occured deeper in the call stack from the current position.

Thomas Singer - 14 Mar 05 19:45
Well, with setting a temporary breakpoint at the layOutComponent()-line, I would just need to press F9 - let's say - 5 times, with "Force Step Over" it would be 3 * 5 = 15 times.