Community
Participate
Working Groups
Steps to reproduce: 1. Go to Java EE perspective (probably happens with Java perspective too) 2. Set breakpoint in Java code 3. Click on "Debug" (while still in Java EE perspective) => - switches to Debug perspective - breakpoint is hit - program execution pauses but the keyboard shortcuts for e.g. "Step into" (F5) do not work. I have to click in the editor window to make them work again. This happens on macO, but as far as I remember it also happened on Windows 7.
I believe we have observed something similar on Linux. Are the debug buttons also *disabled*?
> - switches to Debug perspective Automatic switch or clicking on the "switch perspective" dialog?
This happens when the perspective is automatically switched to the debug perspective (no click on "switch perspective"). The debug buttons are enabled and work fine.
(In reply to Juergen Baier from comment #3) > This happens when the perspective is automatically switched to the debug > perspective (no click on "switch perspective"). > > The debug buttons are enabled and work fine. Interesting. Sounds like a missing "refresh" somewhere after perspective switch, to pick up the current editor context or something like that. Juergen: can you enable tracing for "Platform e4 Workbench SWT" and "Platform e4 Workbench UI" (all except menus and renderer) and check: which context will be reported as active after perspective switch, what will be reported on "F5" and what happens *after* "clicking in the editor window" (which probably activates the editor context).
I enabled the tracing flags you mentioned and I got: 1) Click on "Debug as Java Application": | main | 2018-10-01 11:00:10.696 | org.eclipse.e4.ui.workbench | /trace/focus | org.eclipse.e4.ui.internal.workbench.Activator | trace | 158 | Activating org.eclipse.e4.ui.compatibility.editor=org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl@7ad0cf01 (tags: [Editor, org.eclipse.jdt.ui.CompilationUnitEditor, removeOnHide, active], contributorURI: null) (widget: ContributedPartRenderer$1 {}, renderer: org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer@5811f080, toBeRendered: true, onTop: false, visible: true, containerData: null, accessibilityPhrase: null) (contributionURI: bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor, object: CompatibilityPart [partId=org.eclipse.e4.ui.compatibility.editor, properties=[], tags=[Editor, org.eclipse.jdt.ui.CompilationUnitEditor, removeOnHide, active], wrapped=class org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor, legacyPart=class org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor, beingDisposed=false, alreadyDisposed=false], context: PartImpl (org.eclipse.e4.ui.compatibility.editor) org.eclipse.jdt.ui.CompilationUnitEditorContext, variables: [], label: Test538627.java, iconURI: platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.png, tooltip: null, dirty: false, closeable: true, description: null) | | main | 2018-10-01 11:00:10.699 | org.eclipse.e4.ui.workbench | /trace/focus | org.eclipse.e4.ui.internal.workbench.Activator | trace | 158 | Trying to activate already active part: org.eclipse.e4.ui.compatibility.editor=org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl@7ad0cf01 (tags: [Editor, org.eclipse.jdt.ui.CompilationUnitEditor, removeOnHide, active], contributorURI: null) (widget: ContributedPartRenderer$1 {}, renderer: org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer@5811f080, toBeRendered: true, onTop: false, visible: true, containerData: null, accessibilityPhrase: null) (contributionURI: bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor, object: CompatibilityPart [partId=org.eclipse.e4.ui.compatibility.editor, properties=[], tags=[Editor, org.eclipse.jdt.ui.CompilationUnitEditor, removeOnHide, active], wrapped=class org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor, legacyPart=class org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor, beingDisposed=false, alreadyDisposed=false], context: PartImpl (org.eclipse.e4.ui.compatibility.editor) org.eclipse.jdt.ui.CompilationUnitEditorContext, variables: [], label: Test538627.java, iconURI: platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.png, tooltip: null, dirty: false, closeable: true, description: null) | | main | 2018-10-01 11:00:13.148 | org.eclipse.e4.ui.workbench.swt | /trace/eclipse.context | org.eclipse.e4.ui.internal.workbench.swt.WorkbenchSWTActivator | trace | 143 | DEACTIVATED : PartImpl (org.eclipse.e4.ui.compatibility.editor) org.eclipse.jdt.ui.CompilationUnitEditorContext <- PerspectiveImpl (org.eclipse.debug.ui.DebugPerspective) Context <- TrimmedWindowImpl (IDEWindow) Context <- WorkbenchContext <- OSGi context for bundle: org.eclipse.e4.ui.workbench | | main | 2018-10-01 11:00:13.150 | org.eclipse.e4.ui.workbench.swt | /trace/eclipse.context | org.eclipse.e4.ui.internal.workbench.swt.WorkbenchSWTActivator | trace | 143 | ACTIVATED : PartImpl (org.eclipse.e4.ui.compatibility.editor) org.eclipse.jdt.ui.CompilationUnitEditorContext <- PerspectiveImpl (org.eclipse.debug.ui.DebugPerspective) Context <- TrimmedWindowImpl (IDEWindow) Context <- WorkbenchContext <- OSGi context for bundle: org.eclipse.e4.ui.workbench | | main | 2018-10-01 11:00:13.152 | org.eclipse.e4.ui.workbench.swt | /trace/eclipse.context | org.eclipse.e4.ui.internal.workbench.swt.WorkbenchSWTActivator | trace | 143 | ACTIVATED : PerspectiveImpl (org.eclipse.debug.ui.DebugPerspective) Context <- TrimmedWindowImpl (IDEWindow) Context <- WorkbenchContext <- OSGi context for bundle: org.eclipse.e4.ui.workbench | | main | 2018-10-01 11:00:13.153 | org.eclipse.e4.ui.workbench | /trace/focus | org.eclipse.e4.ui.internal.workbench.Activator | trace | 158 | Activating org.eclipse.e4.ui.compatibility.editor=org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl@7ad0cf01 (tags: [Editor, org.eclipse.jdt.ui.CompilationUnitEditor, removeOnHide, active], contributorURI: null) (widget: ContributedPartRenderer$1 {}, renderer: org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer@5811f080, toBeRendered: true, onTop: false, visible: true, containerData: null, accessibilityPhrase: null) (contributionURI: bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor, object: CompatibilityPart [partId=org.eclipse.e4.ui.compatibility.editor, properties=[], tags=[Editor, org.eclipse.jdt.ui.CompilationUnitEditor, removeOnHide, active], wrapped=class org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor, legacyPart=class org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor, beingDisposed=false, alreadyDisposed=false], context: PartImpl (org.eclipse.e4.ui.compatibility.editor) org.eclipse.jdt.ui.CompilationUnitEditorContext, variables: [], label: Test538627.java, iconURI: platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.png, tooltip: null, dirty: false, closeable: true, description: null) | | main | 2018-10-01 11:00:13.155 | org.eclipse.e4.ui.workbench | /trace/focus | org.eclipse.e4.ui.internal.workbench.Activator | trace | 158 | Trying to activate already active part: org.eclipse.e4.ui.compatibility.editor=org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl@7ad0cf01 (tags: [Editor, org.eclipse.jdt.ui.CompilationUnitEditor, removeOnHide, active], contributorURI: null) (widget: ContributedPartRenderer$1 {}, renderer: org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer@5811f080, toBeRendered: true, onTop: false, visible: true, containerData: null, accessibilityPhrase: null) (contributionURI: bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor, object: CompatibilityPart [partId=org.eclipse.e4.ui.compatibility.editor, properties=[], tags=[Editor, org.eclipse.jdt.ui.CompilationUnitEditor, removeOnHide, active], wrapped=class org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor, legacyPart=class org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor, beingDisposed=false, alreadyDisposed=false], context: PartImpl (org.eclipse.e4.ui.compatibility.editor) org.eclipse.jdt.ui.CompilationUnitEditorContext, variables: [], label: Test538627.java, iconURI: platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.png, tooltip: null, dirty: false, closeable: true, description: null) | 2) Press F5/F6: (no additional output) 3) After clicking in the window: | main | 2018-10-01 11:00:21.795 | org.eclipse.e4.ui.workbench | /trace/focus | org.eclipse.e4.ui.internal.workbench.Activator | trace | 158 | Activating org.eclipse.e4.ui.compatibility.editor=org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl@7ad0cf01 (tags: [Editor, org.eclipse.jdt.ui.CompilationUnitEditor, removeOnHide, active], contributorURI: null) (widget: ContributedPartRenderer$1 {}, renderer: org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer@5811f080, toBeRendered: true, onTop: false, visible: true, containerData: null, accessibilityPhrase: null) (contributionURI: bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor, object: CompatibilityPart [partId=org.eclipse.e4.ui.compatibility.editor, properties=[], tags=[Editor, org.eclipse.jdt.ui.CompilationUnitEditor, removeOnHide, active], wrapped=class org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor, legacyPart=class org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor, beingDisposed=false, alreadyDisposed=false], context: PartImpl (org.eclipse.e4.ui.compatibility.editor) org.eclipse.jdt.ui.CompilationUnitEditorContext, variables: [], label: Test538627.java, iconURI: platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.png, tooltip: null, dirty: false, closeable: true, description: null) | | main | 2018-10-01 11:00:21.798 | org.eclipse.e4.ui.workbench | /trace/focus | org.eclipse.e4.ui.internal.workbench.Activator | trace | 158 | Trying to activate already active part: org.eclipse.e4.ui.compatibility.editor=org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl@7ad0cf01 (tags: [Editor, org.eclipse.jdt.ui.CompilationUnitEditor, removeOnHide, active], contributorURI: null) (widget: ContributedPartRenderer$1 {}, renderer: org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer@5811f080, toBeRendered: true, onTop: false, visible: true, containerData: null, accessibilityPhrase: null) (contributionURI: bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor, object: CompatibilityPart [partId=org.eclipse.e4.ui.compatibility.editor, properties=[], tags=[Editor, org.eclipse.jdt.ui.CompilationUnitEditor, removeOnHide, active], wrapped=class org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor, legacyPart=class org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor, beingDisposed=false, alreadyDisposed=false], context: PartImpl (org.eclipse.e4.ui.compatibility.editor) org.eclipse.jdt.ui.CompilationUnitEditorContext, variables: [], label: Test538627.java, iconURI: platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.png, tooltip: null, dirty: false, closeable: true, description: null) | | main | 2018-10-01 11:00:21.801 | org.eclipse.e4.ui.workbench | /trace/focus | org.eclipse.e4.ui.internal.workbench.Activator | trace | 158 | Activating org.eclipse.e4.ui.compatibility.editor=org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl@7ad0cf01 (tags: [Editor, org.eclipse.jdt.ui.CompilationUnitEditor, removeOnHide, active], contributorURI: null) (widget: ContributedPartRenderer$1 {}, renderer: org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer@5811f080, toBeRendered: true, onTop: false, visible: true, containerData: null, accessibilityPhrase: null) (contributionURI: bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor, object: CompatibilityPart [partId=org.eclipse.e4.ui.compatibility.editor, properties=[], tags=[Editor, org.eclipse.jdt.ui.CompilationUnitEditor, removeOnHide, active], wrapped=class org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor, legacyPart=class org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor, beingDisposed=false, alreadyDisposed=false], context: PartImpl (org.eclipse.e4.ui.compatibility.editor) org.eclipse.jdt.ui.CompilationUnitEditorContext, variables: [], label: Test538627.java, iconURI: platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.png, tooltip: null, dirty: false, closeable: true, description: null) | | main | 2018-10-01 11:00:21.804 | org.eclipse.e4.ui.workbench | /trace/focus | org.eclipse.e4.ui.internal.workbench.Activator | trace | 158 | Trying to activate already active part: org.eclipse.e4.ui.compatibility.editor=org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl@7ad0cf01 (tags: [Editor, org.eclipse.jdt.ui.CompilationUnitEditor, removeOnHide, active], contributorURI: null) (widget: ContributedPartRenderer$1 {}, renderer: org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer@5811f080, toBeRendered: true, onTop: false, visible: true, containerData: null, accessibilityPhrase: null) (contributionURI: bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor, object: CompatibilityPart [partId=org.eclipse.e4.ui.compatibility.editor, properties=[], tags=[Editor, org.eclipse.jdt.ui.CompilationUnitEditor, removeOnHide, active], wrapped=class org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor, legacyPart=class org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor, beingDisposed=false, alreadyDisposed=false], context: PartImpl (org.eclipse.e4.ui.compatibility.editor) org.eclipse.jdt.ui.CompilationUnitEditorContext, variables: [], label: Test538627.java, iconURI: platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.png, tooltip: null, dirty: false, closeable: true, description: null) |
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.
The bug is still reproducible with 2022-09.