Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 385282 - Variables view is sometimes empty
Summary: Variables view is sometimes empty
Status: CLOSED DUPLICATE of bug 384068
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.3 M2   Edit
Assignee: Michael Rennie CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-17 06:45 EDT by Zhongwei Zhao CLA
Modified: 2012-08-21 03:10 EDT (History)
3 users (show)

See Also:


Attachments
patch (986 bytes, patch)
2012-07-17 06:46 EDT, Zhongwei Zhao CLA
Michael_Rennie: iplog+
Michael_Rennie: review+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zhongwei Zhao CLA 2012-07-17 06:45:29 EDT
Open a file and put some breakpoints. Start debug session.
"Do you want to switch to Debug perspective?" - Yes
Debug perspective opens, debug session pauses on the breakpoint, but the Variables view is empty.

If you click on the Variables view to move the focus on it the variables appear. Then you do not have this problem anymore.
Seems to be a bit random and happens the first time only. Next debug will be fine.
Comment 1 Zhongwei Zhao CLA 2012-07-17 06:46:16 EDT
Created attachment 218796 [details]
patch
Comment 2 Michael Rennie CLA 2012-07-17 14:17:48 EDT
Comment on attachment 218796 [details]
patch

The patch works for me, it causes the Variables view and the Breakpoints view behave properly on the initial switch. See bug 380716
Comment 3 Michael Rennie CLA 2012-07-17 14:20:46 EDT
Pushed patch to: http://git.eclipse.org/c/platform/eclipse.platform.debug.git/commit/?id=367e5b38f2ef3b70e1d09ee89d8b288270d6df58

Thanks for the patch Zhongwei!
Comment 4 Dani Megert CLA 2012-08-20 06:20:57 EDT
Mike please revisit. This looks like a workaround for a bug which seems to be fixed now (see  bug 380716 comment 4  for details). And if not, then this is something that should also go into 4.2.1.
Comment 5 Michael Rennie CLA 2012-08-20 11:44:10 EDT
(In reply to comment #4)
> Mike please revisit. This looks like a workaround for a bug which seems to
> be fixed now (see  bug 380716 comment 4  for details). 

The fix for bug 380716 still works with this fix reverted.

Reverted: http://git.eclipse.org/c/platform/eclipse.platform.debug.git/commit/?id=612faf0826c2d2c33aa15adbd8893faf51585ca0

Re-marking fixed.
Comment 6 Dani Megert CLA 2012-08-21 03:10:27 EDT
.

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