Eclipse Inspect(Ctrl+shift+I) not working

后端 未结 5 1931
野趣味
野趣味 2021-02-05 05:53

I checked out a maven project in Eclipse and am unable to Inspect a Variable (right click on the variable and click Inspect option).

When I attempt to do so, I get the

相关标签:
5条回答
  • 2021-02-05 06:34

    I solved this problem by did the following:

    Right click on the project ->build path -> select source tab -> add folder and then i added the folder which contains the java classes.

    0 讨论(0)
  • 2021-02-05 06:38

    In my case the run configuration was configured correctly. But I needed to:

    • right click on the thread
    • click: Edit Source Lookup...
    • check: Search for duplicate source files on the path
    0 讨论(0)
  • 2021-02-05 06:41

    I got the same error message.

    To solve that "Debug Configuration" >> {{JAVA_DEBUG_APPLICATION_NAME}} >> Source (tab)

    Check the source is added correctly,

    For me,

    1. while debugging the java code it opens the class file, which should not be edited.
    2. got the error message too,

    I have removed the sources from the source tab, It solved both the problem

    0 讨论(0)
  • 2021-02-05 06:44

    Also, in your launch configuration, be sure that the source path is correctly specified.

    That is to say: Run/Debug Configurations / Source tab / Add... / Java Project

    Make sure the project containing your source code is in that list!

    0 讨论(0)
  • 2021-02-05 06:54

    This might be useful:

    Find the thread in your debug window that you are in the breakpoint for. Right click on it. Under relaunch should be an edit launch configuration selection. Select that.

    Select Source tab. Add. Java Project. Select the java project that the code exists in.

    0 讨论(0)
提交回复
热议问题