Bug 566783 - [breakpoints] Generic exception breakpoint should skip disabled breakpoint
Summary: [breakpoints] Generic exception breakpoint should skip disabled breakpoint
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.17   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-08 11:23 EDT by Wim Jongman CLA
Modified: 2022-09-12 17:33 EDT (History)
1 user (show)

See Also:


Attachments
Visualization of issue (5.77 MB, video/mp4)
2020-09-08 11:23 EDT, Wim Jongman CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wim Jongman CLA 2020-09-08 11:23:22 EDT
Created attachment 284084 [details]
Visualization of issue

When a generic *Exception* breakpoint mask is created, it may be impossible to bypass exceptions that occur when bringing Eclipse to the foreground, see the attached movie.

I hoped to bypass this by explicitly setting a breakpoint on the unwanted throw and then disabling it. However, this does not work.
Comment 1 Sarika Sinha CLA 2020-09-08 12:50:50 EDT
Did you try using trigger breakpoint for the exception breakpoint to disable other breakpoints?
Comment 2 Wim Jongman CLA 2020-09-08 13:12:41 EDT
(In reply to Sarika Sinha from comment #1)
> Did you try using trigger breakpoint for the exception breakpoint to disable
> other breakpoints?


My aim is to find all places that throw exceptions. I want to trace down places were exceptions are swallowed. 

The OS method in question is visited multiple times. How does a trigger react when it is set in a method that gets visited multiple times, like in a listener.
Comment 3 Sarika Sinha CLA 2020-09-08 13:18:15 EDT
Trigger point will not help the swallowed case but it can help for thrown cases.
Comment 4 Wim Jongman CLA 2020-09-08 13:21:19 EDT
(In reply to Sarika Sinha from comment #3)
> Trigger point will not help the swallowed case but it can help for thrown
> cases.

Also when that throw point is visited many times?
Comment 5 Sarika Sinha CLA 2020-09-08 13:33:34 EDT
Yes, you can control that by letting it be disabled or by re enabling the trigger breakpoint once it is hit.
Comment 6 Wim Jongman CLA 2020-09-08 13:41:32 EDT
(In reply to Sarika Sinha from comment #5)
> Yes, you can control that by letting it be disabled or by re enabling the
> trigger breakpoint once it is hit.

It does not work. The *Exception* generic breakpoint overrules Trigger and Disabled breakpoints on that line.
Comment 7 Sarika Sinha CLA 2020-09-08 13:44:59 EDT
(In reply to Wim Jongman from comment #6)
> (In reply to Sarika Sinha from comment #5)
> > Yes, you can control that by letting it be disabled or by re enabling the
> > trigger breakpoint once it is hit.
> 
> It does not work. The *Exception* generic breakpoint overrules Trigger and
> Disabled breakpoints on that line.

can you attach the video as to how it is overruling trigger point? which breakpoint was set as trigger point?
Comment 8 Eclipse Genie CLA 2022-09-12 17:33:50 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.