简体   繁体   English

无法在eclipse调试透视图中查看源代码

[英]Can't view source in eclipse debug perspective

I was moving around the arrangement of windows in the debug perspective. 我正在调试透视图中移动窗口的排列。 Afterwards, no matter which .java files I had open in the Java perspective, only the source file with the main method would be open in the debug perspective and I couldn't figure out how to see the other source files. 之后,无论我在Java透视图中打开哪个.java文件,只有带有main方法的源文件将在调试透视图中打开,我无法弄清楚如何查看其他源文件。

Then, I accidently closed the main source file and now I don't see any source code in my debug perspective. 然后,我意外地关闭了主源文件,现在我在调试透视图中看不到任何源代码。

If I go to Window -> New Editor, or if I double click on Main.java from the navigator, nothing happens. 如果我转到Window - > New Editor,或者如果我从导航器中双击Main.java,则没有任何反应。

I reset the perspective to default and in the editor, it says "No editor descriptor for id org.eclipse.ui.internal.emptyEditorTab" 我将透视图重置为默认值,并在编辑器中显示“没有编辑器描述符,用于id org.eclipse.ui.internal.emptyEditorTab”

try this based on this link , 试试这个基于这个链接

Closing eclipse and removing .metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi 关闭eclipse并删除.metadata / .plugins / org.eclipse.e4.workbench / workbench.xmi

from your workspace, if you aware of another error, cut and paste to another location.. 从您的工作区,如果您发现另一个错误,剪切并粘贴到另一个位置..

                 YOU CAN POST YOUR BUG TO THAT LINK 

     IF YOU FEEL THAT THAT BUG DOES NOT REPRESENT YOUR PROBLEM.. ^^

               FEEL FREE TO DO IT, THEY WILL HEAR YOU..

if you still want to worked with eclipse, re-install again, import your code. 如果您仍想使用eclipse,请重新安装,导入您的代码。 It worked against me. 它对我不利。 happy coding.. ^^ 快乐的编码.. ^^

I cut the file workbench.xmi --> C:\\User\\workspace.metadata.plugins\\workbench.xmi 我剪切了文件workbench.xmi - > C:\\ User \\ workspace.metadata.plugins \\ workbench.xmi

Now the eclipse is running without the Error! 现在eclipse正在运行而没有错误!

删除workbench.xmi,它对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM