Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 380716 - Breakpoints view empty on first switch to Debug Perspectives
Summary: Breakpoints view empty on first switch to Debug Perspectives
Status: CLOSED DUPLICATE of bug 384068
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 4.2.1   Edit
Assignee: Eric Moffatt CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-25 14:13 EDT by Paul Webster CLA
Modified: 2012-08-21 03:10 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Webster CLA 2012-05-25 14:13:27 EDT
I start up eclipse in the java perspective, and then use F11 to debug an app.  The first time it hits a breakpoint it switches to the Debug perspective and the Breakpoints view is visible, but has no content.

Clicking on the tab makes the content appear.

From  then on, it is fine.

PW
Comment 1 Michael Rennie CLA 2012-05-28 12:28:33 EDT
(In reply to comment #0)
> I start up eclipse in the java perspective, and then use F11 to debug an app. 
> The first time it hits a breakpoint it switches to the Debug perspective and
> the Breakpoints view is visible, but has no content.
> 
> Clicking on the tab makes the content appear.
> 
> From  then on, it is fine.
> 
> PW

Easily reproducible using 4.2 I20120527-1900.

The problem seems to be that we are no longer getting a partVisible event for a view that is visible on the top of part stack but does not have focus.

See DebugViewPartListener (which implements IPartListener2) in AbstractDebugView for how debug tries to set the input for a view.
Comment 2 Michael Rennie CLA 2012-05-28 15:32:31 EDT
(In reply to comment #1)

> The problem seems to be that we are no longer getting a partVisible event for a
> view that is visible on the top of part stack but does not have focus.

partVisible events are also not sent for the Outline or Console view (both visible but not selected) in my debug perspective, after the initial switch.
Comment 3 Michael Rennie CLA 2012-07-17 12:48:46 EDT
The patch attached to bug 385282 works around this issue and causes the view to have content after you switch perspectives.
Comment 4 Paul Webster CLA 2012-08-15 13:44:19 EDT
We think this might be fixed by bug 384068

PW
Comment 5 Eric Moffatt CLA 2012-08-16 10:58:04 EDT
It does indeed seem to be fixed now, thanks Paul !!

Tested by having the following setup:

Both Java and Debug persps open with the Breakpoints view on top but the Java persp active.

Have a breakpoint set somewhere it'll get hit on startup

Restart (so the Debug perspective hasn't been rendered)

Run an inner, BP gets hit switch to Debug perspective
Comment 6 Dani Megert CLA 2012-08-20 06:21:54 EDT
Verified in M20120816-1200.
Comment 7 Dani Megert CLA 2012-08-21 03:10:23 EDT
.

*** This bug has been marked as a duplicate of bug 384068 ***