Bug 31759 - [breakpoints] Scope breakpoints on call graph
Summary: [breakpoints] Scope breakpoints on call graph
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 2.1   Edit
Hardware: All All
: P3 enhancement with 4 votes (vote)
Target Milestone: ---   Edit
Assignee: Luc Bourlier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 36804 67703 69249 75417 134513 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-02-13 05:53 EST by Simon Tardell CLA
Modified: 2008-11-21 12:17 EST (History)
10 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Tardell CLA 2003-02-13 05:53:50 EST
Exception breakpoint can be scoped on throwing class or package. However, it 
be very handy to be able to scope on calling method, class or package. 

That is, don't break on this exception, unless this method (class or package) 
is on the call stack.
Comment 1 Darin Wright CLA 2003-02-13 08:20:52 EST
deferred for post 2.1
Comment 2 Darin Wright CLA 2004-07-29 16:28:01 EDT
*** Bug 69249 has been marked as a duplicate of this bug. ***
Comment 3 Darin Wright CLA 2004-08-17 09:23:32 EDT
Another request for this feature (e-mail): 

"I slowly come to the conclusion that quick fixing an exception isn't that 
easy <g> However, you could help me more when an exception is thrown. For 
example, when there is a NullPointerException, I want to rerun with the 
NullPointerException caught. However, I'd like to rerun with the exception 
filtered to the failure location (otherwise I stop at many useless locations).

Now the problem is that I have to enter the filter expression and this is 
painfull since you have all the information (in addition not many users will 
find the filter page, but we have discussed this is in the phone call already, 
it would also be good to make the properties dialog available when I create 
the exception breakpoint)."
Comment 4 Darin Wright CLA 2004-08-26 14:29:48 EDT
*** Bug 67703 has been marked as a duplicate of this bug. ***
Comment 5 Darin Wright CLA 2004-09-01 11:11:09 EDT
Also see bug 72961
Comment 6 Darin Wright CLA 2004-09-30 16:41:00 EDT
*** Bug 75417 has been marked as a duplicate of this bug. ***
Comment 7 Darin Wright CLA 2004-09-30 16:41:40 EDT
We are looking at ways to generalize this support to all breakpoints -i.e. 
scope breakpoints based on the execution path in which they are encountered.
Comment 8 Robert Klemme CLA 2004-11-04 09:01:21 EST
Some ideas for the new "execution path breakpoint" feature:

- It should be possible to create this filter condition or a breakpoint with
this filter condition during a debug session while stepping after reaching a
breakpoint.

- Multiple paths seem reasonable to me.

- Path length should be controllable, i.e., the number of stack frames to
examine (that's probably also performance relevant).
Comment 9 Darin Wright CLA 2004-11-08 11:18:25 EST
NOTE: scoping is applicable to all breakpoints - not just exception 
breakpoints.
Comment 10 Darin Wright CLA 2004-11-08 11:18:56 EST
*** Bug 36804 has been marked as a duplicate of this bug. ***
Comment 11 Darin Wright CLA 2004-12-02 09:41:45 EST
not planned for M4
Comment 12 Darin Wright CLA 2005-01-18 11:58:06 EST
Deferred
Comment 13 Darin Wright CLA 2006-04-03 11:48:49 EDT
*** Bug 134513 has been marked as a duplicate of this bug. ***
Comment 14 Ed Willink CLA 2007-01-02 12:42:37 EST
The suggested workaround to 145190 implies a solution to this bug.

An add-this-location-as-breakpoint-filter context menu entry in the Debug stack trace would be good.

Comment 15 Michael Rennie CLA 2007-05-23 10:40:55 EDT
reopening
Comment 16 Ed Willink CLA 2007-07-10 01:58:27 EDT
The refusal to fix 145190 makes this a real pain.

Every time I switch between outer and inner Eclipse sessions while debugging a text editor I risk getting:

Thread [main] (Suspended (exception IllegalArgumentException))	
	SWT.error(int, Throwable, String) line: 3547	
	SWT.error(int, Throwable) line: 3481	
	SWT.error(int) line: 3452	
	StyledText.getOffsetAtLocation(Point) line: 3793	

just because the cursor happens to be in noman's land.

I need to be able to filter out the broken StyledText location without filtering all SWT errors or ignoring all IAEs.